================ @@ -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( ---------------- ergawy wrote:
Strangely enough, there is no `emplace`. There is `insert` thought, this might look less weird. Used it. https://github.com/llvm/llvm-project/pull/127633 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits