diff options
author | James Molloy <james.molloy@arm.com> | 2014-06-12 15:18:33 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2014-06-12 15:18:33 +0000 |
commit | 1417b0be3e8fce748a71fd827a2a6a5ce3d9d145 (patch) | |
tree | cf3c2eb23b4da9e65920f35d5933fc52b2b3e2a1 /llvm/test/CodeGen/Thumb/dyn-stackalloc.ll | |
parent | 3d3ea53f32c0638ccd643af3e67807e0a8b325ab (diff) | |
download | bcm5719-llvm-1417b0be3e8fce748a71fd827a2a6a5ce3d9d145.tar.gz bcm5719-llvm-1417b0be3e8fce748a71fd827a2a6a5ce3d9d145.zip |
Disable the load/store optimization pass for Thumb-1.
Moritz's changes have improved codegen a lot, but further testing showed significant correctness problems. Disable by default until these have been worked out.
Patch by Moritz Roth!
llvm-svn: 210789
Diffstat (limited to 'llvm/test/CodeGen/Thumb/dyn-stackalloc.ll')
-rw-r--r-- | llvm/test/CodeGen/Thumb/dyn-stackalloc.ll | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/Thumb/dyn-stackalloc.ll b/llvm/test/CodeGen/Thumb/dyn-stackalloc.ll index 6bc39afe214..6c6de55347a 100644 --- a/llvm/test/CodeGen/Thumb/dyn-stackalloc.ll +++ b/llvm/test/CodeGen/Thumb/dyn-stackalloc.ll @@ -1,5 +1,5 @@ -; RUN: llc < %s -mtriple=thumb-apple-darwin -disable-cgp-branch-opts -disable-post-ra | FileCheck %s -check-prefix=CHECK -check-prefix=RA_GREEDY -; RUN: llc < %s -mtriple=thumb-apple-darwin -disable-cgp-branch-opts -disable-post-ra -regalloc=basic | FileCheck %s -check-prefix=CHECK -check-prefix=RA_BASIC +; RUN: llc < %s -mtriple=thumb-apple-darwin -disable-cgp-branch-opts -disable-post-ra | FileCheck %s +; RUN: llc < %s -mtriple=thumb-apple-darwin -disable-cgp-branch-opts -disable-post-ra -regalloc=basic | FileCheck %s %struct.state = type { i32, %struct.info*, float**, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i8* } %struct.info = type { i32, i32, i32, i32, i32, i32, i32, i8* } @@ -45,8 +45,7 @@ define void @t2(%struct.comment* %vc, i8* %tag, i8* %contents) { ; CHECK: sub sp, # ; CHECK: mov r[[R0:[0-9]+]], sp ; CHECK: str r{{[0-9+]}}, [r[[R0]] -; RA_GREEDY: str r{{[0-9+]}}, [r[[R0]] -; RA_BASIC: stm r[[R0]]! +; CHECK: str r{{[0-9+]}}, [r[[R0]] ; CHECK-NOT: ldr r0, [sp ; CHECK: mov r[[R1:[0-9]+]], sp ; CHECK: subs r[[R2:[0-9]+]], r[[R1]], r{{[0-9]+}} |