[clang] [llvm] [mlir] [mlir][OpenMP] Convert omp.cancel sections to LLVMIR (PR #137193)

Michael Kruse via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 29 03:10:45 PDT 2025


================
@@ -2264,6 +2263,14 @@ OpenMPIRBuilder::InsertPointOrErrorTy OpenMPIRBuilder::createSections(
     AfterIP = {FiniBB, FiniBB->begin()};
   }
 
+  // Now we can fix the dummy branch to point to the right place
+  if (!CancellationBranches.empty()) {
----------------
Meinersbur wrote:

Condition is unnecessary: If `CancellationBranches` is empty, the loop will not execute anyway

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


More information about the cfe-commits mailing list