[llvm-branch-commits] [clang] [flang] [flang][OpenMP] Map simple `do concurrent` loops to OpenMP host constructs (PR #127633)
Sergio Afonso via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Feb 20 05:58:22 PST 2025
================
@@ -93,11 +169,14 @@ bool isPerfectlyNested(fir::DoLoopOp outerLoop, fir::DoLoopOp innerLoop) {
/// recognize a certain nested loop as part of the nest it just returns the
/// parent loops it discovered before.
mlir::LogicalResult collectLoopNest(fir::DoLoopOp currentLoop,
- LoopNest &loopNest) {
+ LoopNestToIndVarMap &loopNest) {
assert(currentLoop.getUnordered());
while (true) {
- loopNest.insert(currentLoop);
+ loopNest.try_emplace(
----------------
skatrak wrote:
Can it happen that we try to add information for the same loop multiple times? It doesn't look like it, so I'd just call `emplace` here.
https://github.com/llvm/llvm-project/pull/127633
More information about the llvm-branch-commits
mailing list