From da3cecfcb0801e65b256e5ecdd8ef6e10c7d0f89 Mon Sep 17 00:00:00 2001 From: Enzo De Carvalho Bittencourt <enzo.decarvalhobittencourt@ensiie.eu> Date: Tue, 10 Oct 2023 10:02:52 +0200 Subject: [PATCH] changed Makefile --- Makefile | 2 +- src/pass_mpi_collective.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d9ba464..d5668f4 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ plugin: test: $(TESTD)/test2 $(TESTD)/%: $(TESTSRCD)/%.c - $(CC) $(FLAGS) $(PLUGIN_FLAGS) $^ -o $@ + $(CC) $(TEST_FLAGS) $(PLUGIN_FLAGS) $^ -o $@ $(OBJD)/%.o: $(SRCD)/%.cpp $(CXX) $(FLAGS) $(PLUGIN_INCLUDE) -c $^ -o $@ diff --git a/src/pass_mpi_collective.cpp b/src/pass_mpi_collective.cpp index da75c71..ed2a349 100644 --- a/src/pass_mpi_collective.cpp +++ b/src/pass_mpi_collective.cpp @@ -152,6 +152,8 @@ void pass_mpi_collective::split_blocks(function *fun) if (nb_collective >= 2){ split_block(bb, prev_stmt); split = true; + //The inner for doesn't stop naturally, whereas the FOR_EACH_BB_FN + //*will* iterate on the new bb we just split. hence the split=true } } } -- GitLab