[llvm] [IndVars] Preserve flags of narrow IV inc if replacing with wider inc. (PR #80446)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 10 10:11:19 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
----------------
fhahn wrote:
Thanks, should be fixed!
https://github.com/llvm/llvm-project/pull/80446
More information about the llvm-commits
mailing list