[flang-commits] [flang] [llvm] [mlir] [Flang]Fix for changed code at the end of AllocaIP. (PR #92430)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Wed May 29 10:43:27 PDT 2024


================
@@ -1203,6 +1204,9 @@ convertOmpParallel(omp::ParallelOp opInst, llvm::IRBuilderBase &builder,
         byRefVars.push_back(builder.CreateAlloca(
             moduleTranslation.convertType(reductionDecls[i].getType())));
       }
+
+      initBlock = splitBB(builder, true, "omp.reduction.init");
+      allocaIP = InsertPointTy(allocaIP.getBlock(), allocaIP.getBlock()->end());
----------------
tblah wrote:

won't putting it at the end of the block put it after the terminator?

https://github.com/llvm/llvm-project/pull/92430


More information about the flang-commits mailing list