[llvm-commits] [llvm] r41938 - /llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp

Bill Wendling isanbard at gmail.com
Thu Sep 13 18:13:55 PDT 2007


Author: void
Date: Thu Sep 13 20:13:55 2007
New Revision: 41938

URL: http://llvm.org/viewvc/llvm-project?rev=41938&view=rev
Log:
Temporary reverting r41817
(http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070910/053370.html). It's
causing SPASS to fail.


Modified:
    llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp?rev=41938&r1=41937&r2=41938&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp Thu Sep 13 20:13:55 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