[llvm-branch-commits] [llvm] 89e43e3 - revert fix in #208874, keep test
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jul 28 06:02:47 PDT 2026
Author: Enna1
Date: 2026-07-28T21:01:09+08:00
New Revision: 89e43e35f9d4e4f68234767bc5d46c5736150bc6
URL: https://github.com/llvm/llvm-project/commit/89e43e35f9d4e4f68234767bc5d46c5736150bc6
DIFF: https://github.com/llvm/llvm-project/commit/89e43e35f9d4e4f68234767bc5d46c5736150bc6.diff
LOG: revert fix in #208874, keep test
Added:
Modified:
llvm/lib/Transforms/Utils/LoopUnroll.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/LoopUnroll.cpp b/llvm/lib/Transforms/Utils/LoopUnroll.cpp
index c92621a85e068..8c9ce101f637d 100644
--- a/llvm/lib/Transforms/Utils/LoopUnroll.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUnroll.cpp
@@ -1284,10 +1284,6 @@ llvm::UnrollLoop(Loop *L, UnrollLoopOptions ULO, LoopInfo *LI,
// Loop over the PHI nodes in the original block, setting incoming values.
for (PHINode *PN : OrigPHINode) {
if (CompletelyUnroll) {
- // The RAUW below disconnects the original PHI from its users.
- // Invalidate cached SCEVs while the def-use chain is still intact.
- if (SE)
- SE->forgetValue(PN);
PN->replaceAllUsesWith(PN->getIncomingValueForBlock(Preheader));
PN->eraseFromParent();
} else if (ULO.Count > 1) {
More information about the llvm-branch-commits
mailing list