[PATCH] D85130: [SCEVExpander] [PowerPC] clear scev rewriter before deleting instructions.
ChenZheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 3 17:52:55 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGba955397ac44: [SCEVExpander][PowerPC]clear scev rewriter before deleting instructions. (authored by shchenz).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85130/new/
https://reviews.llvm.org/D85130
Files:
llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
Index: llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
===================================================================
--- llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
+++ llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
@@ -606,6 +606,10 @@
NewBasePtr = NewPHI;
}
+ // Clear the rewriter cache, because values that are in the rewriter's cache
+ // can be deleted below, causing the AssertingVH in the cache to trigger.
+ SCEVE.clear();
+
if (Instruction *IDel = dyn_cast<Instruction>(BasePtr))
BBChanged.insert(IDel->getParent());
BasePtr->replaceAllUsesWith(NewBasePtr);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85130.282778.patch
Type: text/x-patch
Size: 608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200804/9e386519/attachment.bin>
More information about the llvm-commits
mailing list