[llvm] [DebugInfo][RemoveDIs] Instrument loop-rotate for DPValues (PR #72997)
Jeremy Morse via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 22 07:42:06 PST 2023
================
@@ -551,7 +601,15 @@ bool LoopRotate::rotateLoop(Loop *L, bool SimplifiedLatch) {
if (L->hasLoopInvariantOperands(Inst) && !Inst->mayReadFromMemory() &&
!Inst->mayWriteToMemory() && !Inst->isTerminator() &&
!isa<DbgInfoIntrinsic>(Inst) && !isa<AllocaInst>(Inst)) {
+
+ auto DbgValueRange = LoopEntryBranch->cloneDebugInfoFrom(Inst, NextDbgInst);
+ // Remap any new instructions,
----------------
jmorse wrote:
Removed, and shuffled the 'clone' into the guard. I think it should be self explanatory.
https://github.com/llvm/llvm-project/pull/72997
More information about the llvm-commits
mailing list