[llvm-branch-commits] [llvm-branch] r95878 - in /llvm/branches/Apple/Hermes: lib/CodeGen/DeadMachineInstructionElim.cpp test/CodeGen/ARM/remat.ll test/CodeGen/X86/2007-10-05-3AddrConvert.ll
Devang Patel
devang.patel at gmail.com
Thu Feb 11 10:53:07 PST 2010
Bob,
This breaks build. isPHI() is undefined in this branch.
-
Devang
On Thu, Feb 11, 2010 at 5:57 PM, Bob Wilson <bob.wilson at apple.com> wrote:
> Author: bwilson
> Date: Thu Feb 11 11:57:33 2010
> New Revision: 95878
>
> URL: http://llvm.org/viewvc/llvm-project?rev=95878&view=rev
> Log:
> --- Merging r95816 into '.':
> U test/CodeGen/ARM/remat.ll
> U test/CodeGen/X86/2007-10-05-3AddrConvert.ll
> U lib/CodeGen/DeadMachineInstructionElim.cpp
>
> Modified:
> llvm/branches/Apple/Hermes/lib/CodeGen/DeadMachineInstructionElim.cpp
> llvm/branches/Apple/Hermes/test/CodeGen/ARM/remat.ll
> llvm/branches/Apple/Hermes/test/CodeGen/X86/2007-10-05-3AddrConvert.ll
>
> Modified: llvm/branches/Apple/Hermes/lib/CodeGen/DeadMachineInstructionElim.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Hermes/lib/CodeGen/DeadMachineInstructionElim.cpp?rev=95878&r1=95877&r2=95878&view=diff
>
> ==============================================================================
> --- llvm/branches/Apple/Hermes/lib/CodeGen/DeadMachineInstructionElim.cpp (original)
> +++ llvm/branches/Apple/Hermes/lib/CodeGen/DeadMachineInstructionElim.cpp Thu Feb 11 11:57:33 2010
> @@ -55,7 +55,7 @@
> bool DeadMachineInstructionElim::isDead(const MachineInstr *MI) const {
> // Don't delete instructions with side effects.
> bool SawStore = false;
> - if (!MI->isSafeToMove(TII, SawStore, 0))
> + if (!MI->isSafeToMove(TII, SawStore, 0) && !MI->isPHI())
> return false;
>
> // Examine each operand.
>
> Modified: llvm/branches/Apple/Hermes/test/CodeGen/ARM/remat.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Hermes/test/CodeGen/ARM/remat.ll?rev=95878&r1=95877&r2=95878&view=diff
>
> ==============================================================================
> --- llvm/branches/Apple/Hermes/test/CodeGen/ARM/remat.ll (original)
> +++ llvm/branches/Apple/Hermes/test/CodeGen/ARM/remat.ll Thu Feb 11 11:57:33 2010
> @@ -32,16 +32,16 @@
> br label %phi1.exit
>
> phi1.exit: ; preds = %bb.i35, %bb142
> - %.pn = phi double [ %6, %bb.i35 ], [ 0.000000e+00, %bb142 ] ; <double> [#uses=0]
> + %.pn = phi double [ %6, %bb.i35 ], [ 0.000000e+00, %bb142 ] ; <double> [#uses=1]
> %9 = phi double [ %8, %bb.i35 ], [ 0.000000e+00, %bb142 ] ; <double> [#uses=1]
> - %10 = fmul double undef, %9 ; <double> [#uses=0]
> + %10 = fmul double %.pn, %9 ; <double> [#uses=1]
> br i1 %14, label %phi0.exit, label %bb.i
>
> bb.i: ; preds = %phi1.exit
> unreachable
>
> phi0.exit: ; preds = %phi1.exit
> - %11 = fsub double %4, undef ; <double> [#uses=1]
> + %11 = fsub double %4, %10 ; <double> [#uses=1]
> %12 = fadd double 0.000000e+00, %11 ; <double> [#uses=1]
> store double %12, double* undef, align 4
> br label %bb142
>
> Modified: llvm/branches/Apple/Hermes/test/CodeGen/X86/2007-10-05-3AddrConvert.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Hermes/test/CodeGen/X86/2007-10-05-3AddrConvert.ll?rev=95878&r1=95877&r2=95878&view=diff
>
> ==============================================================================
> --- llvm/branches/Apple/Hermes/test/CodeGen/X86/2007-10-05-3AddrConvert.ll (original)
> +++ llvm/branches/Apple/Hermes/test/CodeGen/X86/2007-10-05-3AddrConvert.ll Thu Feb 11 11:57:33 2010
> @@ -36,7 +36,9 @@
>
> bb107.i.i: ; preds = %bb107.i.i, %bb.i6.i
> %q_addr.0.i.i.in = phi %struct.bnode** [ null, %bb107.i.i ], [ %4, %bb.i6.i ] ; <%struct.bnode**> [#uses=1]
> - %q_addr.0.i.i = load %struct.bnode** %q_addr.0.i.i.in ; <%struct.bnode*> [#uses=0]
> + %q_addr.0.i.i = load %struct.bnode** %q_addr.0.i.i.in ; <%struct.bnode*> [#uses=1]
> + %q_addr.1 = getelementptr %struct.anon* %0, i32 0, i32 4, i32 1
> + store %struct.bnode* %q_addr.0.i.i, %struct.bnode** %q_addr.1, align 4
> br label %bb107.i.i
>
> bb47.loopexit.i: ; preds = %bb32.i
>
>
> _______________________________________________
> llvm-branch-commits mailing list
> llvm-branch-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-branch-commits
>
--
-
Devang
More information about the llvm-branch-commits
mailing list