projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85460d0
)
SCEVExpander: hoistStep should check strict dominance.
author
Andrew Trick
<atrick@apple.com>
Fri, 6 Jan 2012 21:23:43 +0000
(21:23 +0000)
committer
Andrew Trick
<atrick@apple.com>
Fri, 6 Jan 2012 21:23:43 +0000
(21:23 +0000)
llvm-svn: 147683
llvm/lib/Analysis/ScalarEvolutionExpander.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
index
0a3cda9
..
b9c2304
100644
(file)
--- a/
llvm/lib/Analysis/ScalarEvolutionExpander.cpp
+++ b/
llvm/lib/Analysis/ScalarEvolutionExpander.cpp
@@
-1564,7
+1564,7
@@
bool SCEVExpander::hoistStep(Instruction *IncV, Instruction *InsertPos,
for (User::op_iterator OI = IncV->op_begin(), OE = IncV->op_end();
OI != OE; ++OI) {
Instruction *OInst = dyn_cast<Instruction>(OI);
- if (OInst &&
!DT->dominates(OInst, InsertPos
))
+ if (OInst &&
(OInst == InsertPos || !DT->dominates(OInst, InsertPos)
))
return false;
}
IncV->moveBefore(InsertPos);