[llvm] [IndVars] Preserve flags of narrow IV inc if replacing with wider inc. (PR #80446)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 9 12:34:51 PST 2024
================
@@ -1985,7 +1985,28 @@ PHINode *WidenIV::createWideIV(SCEVExpander &Rewriter) {
// increment to the new (widened) increment.
auto *OrigInc =
cast<Instruction>(OrigPhi->getIncomingValueForBlock(LatchBlock));
+
WideInc->setDebugLoc(OrigInc->getDebugLoc());
+ // We are replacing a narrow IV increment with a wider IV increment . If
----------------
nikic wrote:
```suggestion
// We are replacing a narrow IV increment with a wider IV increment. If
```
https://github.com/llvm/llvm-project/pull/80446
More information about the llvm-commits
mailing list