[llvm-commits] [llvm] r41952 - /llvm/branches/release_21/lib/Transforms/Scalar/LoopIndexSplit.cpp
Tanya Lattner
tonic at nondot.org
Thu Sep 13 22:08:13 PDT 2007
Author: tbrethou
Date: Fri Sep 14 00:08:12 2007
New Revision: 41952
URL: http://llvm.org/viewvc/llvm-project?rev=41952&view=rev
Log:
Merge from mainline.
Modified:
llvm/branches/release_21/lib/Transforms/Scalar/LoopIndexSplit.cpp
Modified: llvm/branches/release_21/lib/Transforms/Scalar/LoopIndexSplit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_21/lib/Transforms/Scalar/LoopIndexSplit.cpp?rev=41952&r1=41951&r2=41952&view=diff
==============================================================================
--- llvm/branches/release_21/lib/Transforms/Scalar/LoopIndexSplit.cpp (original)
+++ llvm/branches/release_21/lib/Transforms/Scalar/LoopIndexSplit.cpp Fri Sep 14 00:08:12 2007
@@ -336,24 +336,14 @@
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;
More information about the llvm-commits
mailing list