diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2018-08-30 07:18:10 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2018-08-30 07:18:10 +0000 |
| commit | 015a147c9f903dc8a7b4d8b7009248c2bf64da43 (patch) | |
| tree | 40324a0641733a4d665aef81e48d23b7eea7b889 /llvm/test/CodeGen/Thumb/frame-access.ll | |
| parent | eba9e9a2663523d084acda3a63977d33f40c6e2b (diff) | |
| download | bcm5719-llvm-015a147c9f903dc8a7b4d8b7009248c2bf64da43.tar.gz bcm5719-llvm-015a147c9f903dc8a7b4d8b7009248c2bf64da43.zip | |
CodeGen: Make computeRegisterLiveness search forward first
If there is an unused def, this would previously
report that the register was live. Check for uses
first so that it is reported as dead if never used.
llvm-svn: 341027
Diffstat (limited to 'llvm/test/CodeGen/Thumb/frame-access.ll')
| -rw-r--r-- | llvm/test/CodeGen/Thumb/frame-access.ll | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/Thumb/frame-access.ll b/llvm/test/CodeGen/Thumb/frame-access.ll index 7b6f5ba3eac..7fae4470f8f 100644 --- a/llvm/test/CodeGen/Thumb/frame-access.ll +++ b/llvm/test/CodeGen/Thumb/frame-access.ll @@ -126,10 +126,9 @@ entry: ; CHECK-NEXT: lsls r4, r4, #4 ; CHECK-NEXT: mov sp, r4 ; Incoming register varargs stored via FP -; CHECK: str r3, [r7, #16] -; CHECK-NEXT: str r2, [r7, #12] -; CHECK-NEXT: str r1, [r7, #8] - +; CHECK: mov r0, r7 +; CHECK-NEXT: adds r0, #8 +; CHECK-NEXT: stm r0!, {r1, r2, r3} ; VLAs present, access via FP ; int test_args_vla(int a, int b, int c, int d, int e) { ; int v[a]; |

