projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41ce39c
)
Fix a problem where we could infinitely recurse on phi nodes.
author
Chris Lattner
<sabre@nondot.org>
Tue, 1 Feb 2005 00:18:30 +0000
(
00:18
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 1 Feb 2005 00:18:30 +0000
(
00:18
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19955
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/ScalarEvolution.cpp
b/lib/Analysis/ScalarEvolution.cpp
index ad08489cdb3637e41223faec39ea2f3786c12827..d400b4b3fd85d35d253f18dd14a31d39e414e6e8 100644
(file)
--- a/
lib/Analysis/ScalarEvolution.cpp
+++ b/
lib/Analysis/ScalarEvolution.cpp
@@
-1163,7
+1163,7
@@
void ScalarEvolutionsImpl::UpdatePHIUserScalarEntries(Instruction *I,
std::set<Instruction*> &UpdatedInsts) {
std::map<Value*, SCEVHandle>::iterator SI = Scalars.find(I);
if (SI == Scalars.end()) return; // This scalar wasn't previous processed.
- if (UpdatedInsts.insert(I).second) {
+ if (UpdatedInsts.insert(I).second
&& !isa<PHINode>(PN)
) {
Scalars.erase(SI); // Remove the old entry
getSCEV(I); // Calculate the new entry