summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-05 01:30:11 +0000
committerChris Lattner <sabre@nondot.org>2005-08-05 01:30:11 +0000
commit11e7a5eda7700b70681f1fb28673f8b978ecd1eb (patch)
tree47cdb9bec0456ab3702835602a17e9b5544c3c40 /llvm/lib/Transforms
parent9f9c260b8c91f61e2ddcdfc3d5633578fa3a3664 (diff)
downloadbcm5719-llvm-11e7a5eda7700b70681f1fb28673f8b978ecd1eb.tar.gz
bcm5719-llvm-11e7a5eda7700b70681f1fb28673f8b978ecd1eb.zip
Make sure to clean CastedPointers after casts are potentially deleted.
This fixes LSR crashes on 301.apsi, 191.fma3d, and 189.lucas llvm-svn: 22673
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index 0326a143df9..19e8840320c 100644
--- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -106,7 +106,6 @@ namespace {
for (LoopInfo::iterator I = LI->begin(), E = LI->end(); I != E; ++I)
runOnLoop(*I);
- CastedPointers.clear();
return Changed;
}
@@ -672,6 +671,7 @@ void LoopStrengthReduce::runOnLoop(Loop *L) {
DeleteTriviallyDeadInstructions(DeadInsts);
}
+ CastedPointers.clear();
IVUsesByStride.clear();
return;
}
OpenPOWER on IntegriCloud