================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits