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

Chris Lattner clattner at apple.com
Thu Sep 13 21:15:20 PDT 2007


On Sep 13, 2007, at 6:13 PM, Bill Wendling wrote:

> 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.

Thanks Bill.

Tanya, this fixes the SPASS failures on PPC and X86, please merge  
into the 2.1 release when appropriate.

-Chris

>
> 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;
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list