diff options
author | Bill Wendling <isanbard@gmail.com> | 2007-09-14 01:13:55 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2007-09-14 01:13:55 +0000 |
commit | c68491069a213b1a3c959c24ae6aa6cf983b60d9 (patch) | |
tree | 8ee55e68abb6b6ef17bc8cca72cd53e690d3cec3 /lib/Transforms | |
parent | 309f20fc45a599ca45ad1262525d9f4c332b1911 (diff) | |
download | external_llvm-c68491069a213b1a3c959c24ae6aa6cf983b60d9.zip external_llvm-c68491069a213b1a3c959c24ae6aa6cf983b60d9.tar.gz external_llvm-c68491069a213b1a3c959c24ae6aa6cf983b60d9.tar.bz2 |
Temporary reverting r41817
(http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070910/053370.html). It's
causing SPASS to fail.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41938 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/LoopIndexSplit.cpp | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/lib/Transforms/Scalar/LoopIndexSplit.cpp b/lib/Transforms/Scalar/LoopIndexSplit.cpp index 48626ac..b40dd04 100644 --- a/lib/Transforms/Scalar/LoopIndexSplit.cpp +++ b/lib/Transforms/Scalar/LoopIndexSplit.cpp @@ -336,24 +336,14 @@ void LoopIndexSplit::findLoopConditionals() { if (!CI) return; - // FIXME - if (CI->getPredicate() == ICmpInst::ICMP_EQ - || CI->getPredicate() == ICmpInst::ICMP_NE) - return; - + // FIXME if (CI->getPredicate() == ICmpInst::ICMP_SGT || CI->getPredicate() == ICmpInst::ICMP_UGT || CI->getPredicate() == ICmpInst::ICMP_SGE - || CI->getPredicate() == ICmpInst::ICMP_UGE) { - - BasicBlock *FirstSuccessor = BR->getSuccessor(0); - // splitLoop() is expecting LT/LE as exit condition predicate. - // Swap operands here if possible to meet this requirement. - if (!L->contains(FirstSuccessor)) - CI->swapOperands(); - else - return; - } + || CI->getPredicate() == ICmpInst::ICMP_UGE + || CI->getPredicate() == ICmpInst::ICMP_EQ + || CI->getPredicate() == ICmpInst::ICMP_NE) + return; ExitCondition = CI; |