summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/swifterror.ll
diff options
context:
space:
mode:
authorGeoff Berry <gberry@codeaurora.org>2018-02-27 16:59:10 +0000
committerGeoff Berry <gberry@codeaurora.org>2018-02-27 16:59:10 +0000
commita2b901129099b93f20e8cdf41f520e31398c0c4d (patch)
treedce027ceb74117c28b4d882383b8ebb172de0fd7 /llvm/test/CodeGen/ARM/swifterror.ll
parent3bfa8f01207f907551c8ea39a938e0f2f8ec018b (diff)
downloadbcm5719-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/swifterror.ll')
-rw-r--r--llvm/test/CodeGen/ARM/swifterror.ll9
1 files changed, 4 insertions, 5 deletions
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]]]
OpenPOWER on IntegriCloud