mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
Simplify.
llvm-svn: 107248
This commit is contained in:
parent
39594cc5d0
commit
01304ebfad
@ -1101,8 +1101,7 @@ Value *SCEVExpander::visitAddRecExpr(const SCEVAddRecExpr *S) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// {0,+,1} --> Insert a canonical induction variable into the loop!
|
// {0,+,1} --> Insert a canonical induction variable into the loop!
|
||||||
if (S->isAffine() &&
|
if (S->isAffine() && S->getOperand(1)->isOne()) {
|
||||||
S->getOperand(1) == SE.getConstant(Ty, 1)) {
|
|
||||||
// If there's a canonical IV, just use it.
|
// If there's a canonical IV, just use it.
|
||||||
if (CanonicalIV) {
|
if (CanonicalIV) {
|
||||||
assert(Ty == SE.getEffectiveSCEVType(CanonicalIV->getType()) &&
|
assert(Ty == SE.getEffectiveSCEVType(CanonicalIV->getType()) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user