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 | 264d4813c719b53e90a36013f35c8059275a52be (patch) | |
| tree | 65bd063ecb2f5de15c846ecd4b61c402a4889db3 /llvm/lib/Transforms | |
| parent | a23cc796542871932390078233c3b0cd2f74a160 (diff) | |
| download | bcm5719-llvm-264d4813c719b53e90a36013f35c8059275a52be.tar.gz bcm5719-llvm-264d4813c719b53e90a36013f35c8059275a52be.zip | |
Temporary reverting r41817
(http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070910/053370.html). It's
causing SPASS to fail.
llvm-svn: 41938
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp b/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp index 48626ac475e..b40dd04c82d 100644 --- a/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp +++ b/llvm/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; |

