[PATCH] D88221: [flang][OpenMP] Place the insertion point to the start of the block
Sourabh Singh Tomar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 25 11:27:05 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd2f1f530430e: [flang][OpenMP] Place the insertion point to the start of the block (authored by SouraVX).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88221/new/
https://reviews.llvm.org/D88221
Files:
flang/lib/Lower/OpenMP.cpp
Index: flang/lib/Lower/OpenMP.cpp
===================================================================
--- flang/lib/Lower/OpenMP.cpp
+++ flang/lib/Lower/OpenMP.cpp
@@ -87,7 +87,6 @@
if (parallelDirective.v == llvm::omp::OMPD_parallel) {
auto &firOpBuilder = converter.getFirOpBuilder();
auto currentLocation = converter.getCurrentLocation();
- auto insertPt = firOpBuilder.saveInsertionPoint();
// Clauses.
// FIXME: Add support for other clauses.
@@ -117,7 +116,9 @@
firOpBuilder.setInsertionPointToStart(&block);
// Ensure the block is well-formed.
firOpBuilder.create<mlir::omp::TerminatorOp>(currentLocation);
- firOpBuilder.restoreInsertionPoint(insertPt);
+
+ // Place the insertion point to the start of the first block.
+ firOpBuilder.setInsertionPointToStart(&block);
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88221.294376.patch
Type: text/x-patch
Size: 839 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200925/1dac61eb/attachment.bin>
More information about the llvm-commits
mailing list