CodeGen peephole: fold redundant phys reg copies
[oota-llvm.git] / test / CodeGen / X86 / coalescer-commute1.ll
index 227cd72d154c4170afe8cc617c263939c4deae27..dccf3b906fd9fac9584f41d345deeb8886aac3e1 100644 (file)
@@ -6,14 +6,14 @@
 
 define void @runcont(i32* %source) nounwind  {
 entry:
-       %tmp10 = load i32* @NNTOT, align 4              ; <i32> [#uses=1]
+       %tmp10 = load i32, i32* @NNTOT, align 4         ; <i32> [#uses=1]
        br label %bb
 
 bb:            ; preds = %bb, %entry
        %neuron.0 = phi i32 [ 0, %entry ], [ %indvar.next, %bb ]                ; <i32> [#uses=2]
        %thesum.0 = phi float [ 0.000000e+00, %entry ], [ %tmp6, %bb ]          ; <float> [#uses=1]
        %tmp2 = getelementptr i32, i32* %source, i32 %neuron.0          ; <i32*> [#uses=1]
-       %tmp3 = load i32* %tmp2, align 4                ; <i32> [#uses=1]
+       %tmp3 = load i32, i32* %tmp2, align 4           ; <i32> [#uses=1]
        %tmp34 = sitofp i32 %tmp3 to float              ; <float> [#uses=1]
        %tmp6 = fadd float %tmp34, %thesum.0            ; <float> [#uses=2]
        %indvar.next = add i32 %neuron.0, 1             ; <i32> [#uses=2]