commit | 204b7cad7a7395f5fa841619215fa3280b3b4f02 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Wed Jun 30 06:09:46 2010 +0000 |
committer | Dan Gohman <gohman@apple.com> | Wed Jun 30 06:09:46 2010 +0000 |
tree | 5f29af0785f4cde12bbe1a38e80e09a889b16458 | |
parent | 876085dcfa0b16071b73d4b1bb2f531bf897417a [diff] [blame] |
Simplify. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107248 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/ScalarEvolutionExpander.cpp b/lib/Analysis/ScalarEvolutionExpander.cpp index 2f7f73e..99b4a40 100644 --- a/lib/Analysis/ScalarEvolutionExpander.cpp +++ b/lib/Analysis/ScalarEvolutionExpander.cpp
@@ -1101,8 +1101,7 @@ } // {0,+,1} --> Insert a canonical induction variable into the loop! - if (S->isAffine() && - S->getOperand(1) == SE.getConstant(Ty, 1)) { + if (S->isAffine() && S->getOperand(1)->isOne()) { // If there's a canonical IV, just use it. if (CanonicalIV) { assert(Ty == SE.getEffectiveSCEVType(CanonicalIV->getType()) &&