[llvm-commits] [llvm] r59976 - /llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp

Bill Wendling isanbard at gmail.com
Mon Nov 24 12:44:28 PST 2008


Chris,

This testcase is still failing. I XFAILed it for now. Did you mean to
comment out the first "if" statement here?

-bw

On Mon, Nov 24, 2008 at 11:40 AM, Chris Lattner <sabre at nondot.org> wrote:
> Author: lattner
> Date: Mon Nov 24 13:40:34 2008
> New Revision: 59976
>
> URL: http://llvm.org/viewvc/llvm-project?rev=59976&view=rev
> Log:
> revert an accidental commit, this fixes the regression on test/CodeGen/X86/isel-sink.ll
>
> Modified:
>    llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp
>
> Modified: llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp?rev=59976&r1=59975&r2=59976&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp (original)
> +++ llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp Mon Nov 24 13:40:34 2008
> @@ -208,7 +208,7 @@
>     while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) {
>       Value *NewVal = PN->getIncomingValue(0);
>       // Replace self referencing PHI with undef, it must be dead.
> -      if (NewVal == PN) NewVal = UndefValue::get(PN->getType());
> +      //if (NewVal == PN) NewVal = UndefValue::get(PN->getType());
>       PN->replaceAllUsesWith(NewVal);
>       PN->eraseFromParent();
>     }
> @@ -572,9 +572,6 @@
>   if (Instruction *I = dyn_cast_or_null<Instruction>(AddrInst))
>     AddrModeInsts.push_back(I);
>
> -  if (AddrInst && !AddrInst->hasOneUse())
> -    ;
> -  else
>   switch (Opcode) {
>   case Instruction::PtrToInt:
>     // PtrToInt is always a noop, as we know that the int type is pointer sized.
>
>
> _______________________________________________
> 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