summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-09-10 18:33:42 +0000
committerDevang Patel <dpatel@apple.com>2007-09-10 18:33:42 +0000
commitf8ab0a9acc97fdb2648c3a467f2c93a008a1c395 (patch)
treee1463c143395e5882ef81eae433908dacd117a1c /llvm/lib
parentc24099ac82a03e8fec4c5c8e42a54c6f95399c02 (diff)
downloadbcm5719-llvm-f8ab0a9acc97fdb2648c3a467f2c93a008a1c395.tar.gz
bcm5719-llvm-f8ab0a9acc97fdb2648c3a467f2c93a008a1c395.zip
Filter exit conditions which are not yet handled.
llvm-svn: 41800
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp b/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp
index 4a6202e7836..3a046655d5e 100644
--- a/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp
@@ -332,7 +332,9 @@ void LoopIndexSplit::findLoopConditionals() {
if (CI->getPredicate() == ICmpInst::ICMP_SGT
|| CI->getPredicate() == ICmpInst::ICMP_UGT
|| CI->getPredicate() == ICmpInst::ICMP_SGE
- || CI->getPredicate() == ICmpInst::ICMP_UGE)
+ || CI->getPredicate() == ICmpInst::ICMP_UGE
+ || CI->getPredicate() == ICmpInst::ICMP_EQ
+ || CI->getPredicate() == ICmpInst::ICMP_NE)
return;
ExitCondition = CI;
OpenPOWER on IntegriCloud