diff options
author | Geoff Berry <gberry@codeaurora.org> | 2018-02-27 16:59:10 +0000 |
---|---|---|
committer | Geoff Berry <gberry@codeaurora.org> | 2018-02-27 16:59:10 +0000 |
commit | a2b901129099b93f20e8cdf41f520e31398c0c4d (patch) | |
tree | dce027ceb74117c28b4d882383b8ebb172de0fd7 /llvm/test/CodeGen/ARM | |
parent | 3bfa8f01207f907551c8ea39a938e0f2f8ec018b (diff) | |
download | bcm5719-llvm-a2b901129099b93f20e8cdf41f520e31398c0c4d.tar.gz bcm5719-llvm-a2b901129099b93f20e8cdf41f520e31398c0c4d.zip |
Re-enable "[MachineCopyPropagation] Extend pass to do COPY source forwarding"
Re-enable commit r323991 now that r325931 has been committed to make
MachineOperand::isRenamable() check more conservative w.r.t. code
changes and opt-in on a per-target basis.
llvm-svn: 326208
Diffstat (limited to 'llvm/test/CodeGen/ARM')
-rw-r--r-- | llvm/test/CodeGen/ARM/atomic-op.ll | 6 | ||||
-rw-r--r-- | llvm/test/CodeGen/ARM/intrinsics-overflow.ll | 2 | ||||
-rw-r--r-- | llvm/test/CodeGen/ARM/swifterror.ll | 9 |
3 files changed, 9 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/ARM/atomic-op.ll b/llvm/test/CodeGen/ARM/atomic-op.ll index 644a7fbf8d9..2337e835480 100644 --- a/llvm/test/CodeGen/ARM/atomic-op.ll +++ b/llvm/test/CodeGen/ARM/atomic-op.ll @@ -287,7 +287,8 @@ define i32 @test_cmpxchg_fail_order(i32 *%addr, i32 %desired, i32 %new) { %pair = cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst monotonic %oldval = extractvalue { i32, i1 } %pair, 0 -; CHECK-ARMV7: ldrex [[OLDVAL:r[0-9]+]], [r[[ADDR:[0-9]+]]] +; CHECK-ARMV7: mov r[[ADDR:[0-9]+]], r0 +; CHECK-ARMV7: ldrex [[OLDVAL:r[0-9]+]], [r0] ; CHECK-ARMV7: cmp [[OLDVAL]], r1 ; CHECK-ARMV7: bne [[FAIL_BB:\.?LBB[0-9]+_[0-9]+]] ; CHECK-ARMV7: dmb ish @@ -305,7 +306,8 @@ define i32 @test_cmpxchg_fail_order(i32 *%addr, i32 %desired, i32 %new) { ; CHECK-ARMV7: dmb ish ; CHECK-ARMV7: bx lr -; CHECK-T2: ldrex [[OLDVAL:r[0-9]+]], [r[[ADDR:[0-9]+]]] +; CHECK-T2: mov r[[ADDR:[0-9]+]], r0 +; CHECK-T2: ldrex [[OLDVAL:r[0-9]+]], [r0] ; CHECK-T2: cmp [[OLDVAL]], r1 ; CHECK-T2: bne [[FAIL_BB:\.?LBB.*]] ; CHECK-T2: dmb ish diff --git a/llvm/test/CodeGen/ARM/intrinsics-overflow.ll b/llvm/test/CodeGen/ARM/intrinsics-overflow.ll index 5f78b13c18d..835be7e949d 100644 --- a/llvm/test/CodeGen/ARM/intrinsics-overflow.ll +++ b/llvm/test/CodeGen/ARM/intrinsics-overflow.ll @@ -39,7 +39,7 @@ define i32 @sadd_overflow(i32 %a, i32 %b) #0 { ; ARM: mov pc, lr ; THUMBV6: mov r[[R2:[0-9]+]], r[[R0:[0-9]+]] - ; THUMBV6: adds r[[R3:[0-9]+]], r[[R2]], r[[R1:[0-9]+]] + ; THUMBV6: adds r[[R3:[0-9]+]], r[[R0]], r[[R1:[0-9]+]] ; THUMBV6: movs r[[R0]], #0 ; THUMBV6: movs r[[R1]], #1 ; THUMBV6: cmp r[[R3]], r[[R2]] diff --git a/llvm/test/CodeGen/ARM/swifterror.ll b/llvm/test/CodeGen/ARM/swifterror.ll index db339604597..8d1729df2ae 100644 --- a/llvm/test/CodeGen/ARM/swifterror.ll +++ b/llvm/test/CodeGen/ARM/swifterror.ll @@ -40,7 +40,7 @@ define float @caller(i8* %error_ref) { ; CHECK-APPLE-DAG: mov r8, #0 ; CHECK-APPLE: bl {{.*}}foo ; CHECK-APPLE: mov r0, r8 -; CHECK-APPLE: cmp r0, #0 +; CHECK-APPLE: cmp r8, #0 ; Access part of the error object and save it to error_ref ; CHECK-APPLE: ldrbeq [[CODE:r[0-9]+]], [r0, #8] ; CHECK-APPLE: strbeq [[CODE]], [{{.*}}[[ID]]] @@ -181,8 +181,7 @@ define float @foo_loop(%swift_error** swifterror %error_ptr_ref, i32 %cc, float ; CHECK-APPLE: beq ; CHECK-APPLE: mov r0, #16 ; CHECK-APPLE: malloc -; CHECK-APPLE: mov r8, r0 -; CHECK-APPLE: strb r{{.*}}, [r8, #8] +; CHECK-APPLE: strb r{{.*}}, [r0, #8] ; CHECK-APPLE: ble ; CHECK-O0-LABEL: foo_loop: @@ -266,7 +265,7 @@ define float @caller3(i8* %error_ref) { ; CHECK-APPLE: mov r8, #0 ; CHECK-APPLE: bl {{.*}}foo_sret ; CHECK-APPLE: mov r0, r8 -; CHECK-APPLE: cmp r0, #0 +; CHECK-APPLE: cmp r8, #0 ; Access part of the error object and save it to error_ref ; CHECK-APPLE: ldrbeq [[CODE:r[0-9]+]], [r0, #8] ; CHECK-APPLE: strbeq [[CODE]], [{{.*}}[[ID]]] @@ -347,7 +346,7 @@ define float @caller4(i8* %error_ref) { ; CHECK-APPLE: mov r8, #0 ; CHECK-APPLE: bl {{.*}}foo_vararg ; CHECK-APPLE: mov r0, r8 -; CHECK-APPLE: cmp r0, #0 +; CHECK-APPLE: cmp r8, #0 ; Access part of the error object and save it to error_ref ; CHECK-APPLE: ldrbeq [[CODE:r[0-9]+]], [r0, #8] ; CHECK-APPLE: strbeq [[CODE]], [{{.*}}[[ID]]] |