[llvm] [KeyInstr][LoopUnroll] Remap atoms while unrolling (PR #133489)

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Fri May 9 05:25:47 PDT 2025


================
@@ -752,6 +752,14 @@ llvm::UnrollLoop(Loop *L, UnrollLoopOptions ULO, LoopInfo *LI,
         }
       }
 
+      // Remap source location atom instance. Do this now, rather than
+      // when we remap instructions, because remap is called once we've
+      // cloned all blocks (all the clones would get the same atom
+      // number).
----------------
jmorse wrote:

Ah right -- it's the fact that Something Happens (TM) during CloneBasicBlock that I think I was missing. 

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


More information about the llvm-commits mailing list