[polly] [RemoveDI][Polly] Migrate to adapt to the new DebugRecord format in more areas (PR #135935)
Karthika Devi C via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 22 22:01:46 PDT 2025
================
@@ -1384,7 +1384,7 @@ void RegionGenerator::copyPHIInstruction(ScopStmt &Stmt, PHINode *PHI,
unsigned NumIncoming = PHI->getNumIncomingValues();
PHINode *PHICopy =
Builder.CreatePHI(PHI->getType(), NumIncoming, "polly." + PHI->getName());
- PHICopy->moveBefore(PHICopy->getParent()->getFirstNonPHIIt());
+ PHICopy->moveBeforePreserving(PHICopy->getParent()->getFirstNonPHIIt());
----------------
kartcq wrote:
Thanks for pointing this out @OCHyams. I have reverted this particular change.
https://github.com/llvm/llvm-project/pull/135935
More information about the llvm-commits
mailing list