diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2007-08-06 18:33:46 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2007-08-06 18:33:46 +0000 |
commit | 06323bfe034797be1f835459845f83a28400f707 (patch) | |
tree | 40d5ef5f453fbb334bf1635aeb8f809529290e3d /lib/Analysis/ScalarEvolution.cpp | |
parent | 7409cabc3e33545db59af61f05a4c870d7ad64c0 (diff) |
Don't assume it's safe to transform a loop just because it's dominated by any
comparison. Fixes bug 1598.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40866 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 0039144d89..879347f7f7 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -2387,7 +2387,7 @@ HowManyLessThans(SCEV *LHS, SCEV *RHS, const Loop *L) { return UnknownValue; // Not a comparison against 'n-1'. } else return UnknownValue; - } else if (Cond == ICmpInst::ICMP_ULT) + } else return UnknownValue; // cerr << "Computed Loop Trip Count as: " |