diff options
| author | Bill Wendling <isanbard@gmail.com> | 2012-03-04 10:46:01 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2012-03-04 10:46:01 +0000 |
| commit | 97b935962308680e9f18bba06bcbdd05fdd7b4db (patch) | |
| tree | 4928cab5c018d09dac594d40b387b966b4ae6c9c /llvm/test | |
| parent | 1d3265887755f2eac986407343dc7447948e9a72 (diff) | |
| download | bcm5719-llvm-97b935962308680e9f18bba06bcbdd05fdd7b4db.tar.gz bcm5719-llvm-97b935962308680e9f18bba06bcbdd05fdd7b4db.zip | |
Do trivial CSE of dead BBs during codegen preparation.
Some BBs can become dead after codegen preparation. If we delete them here, it
could help enable tail-call optimizations later on.
<rdar://problem/10256573>
llvm-svn: 152002
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/ARM/2011-03-15-LdStMultipleBug.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/cse-libcalls.ll | 4 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/2011-11-09-FoldImpDefs.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/unreachable-stack-protector.ll | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/ARM/2011-03-15-LdStMultipleBug.ll b/llvm/test/CodeGen/ARM/2011-03-15-LdStMultipleBug.ll index ccda281e901..2faa04af8ba 100644 --- a/llvm/test/CodeGen/ARM/2011-03-15-LdStMultipleBug.ll +++ b/llvm/test/CodeGen/ARM/2011-03-15-LdStMultipleBug.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -relocation-model=pic -disable-fp-elim -mcpu=cortex-a8 | FileCheck %s +; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -relocation-model=pic -disable-fp-elim -disable-cgp-delete-dead-blocks -mcpu=cortex-a8 | FileCheck %s ; Do not form Thumb2 ldrd / strd if the offset is not multiple of 4. ; rdar://9133587 diff --git a/llvm/test/CodeGen/ARM/cse-libcalls.ll b/llvm/test/CodeGen/ARM/cse-libcalls.ll index 0dcf9ddc0bb..1d011be93c3 100644 --- a/llvm/test/CodeGen/ARM/cse-libcalls.ll +++ b/llvm/test/CodeGen/ARM/cse-libcalls.ll @@ -4,7 +4,7 @@ target triple = "i386-apple-darwin8" ; Without CSE of libcalls, there are two calls in the output instead of one. -define i32 @u_f_nonbon(double %lambda) nounwind { +define double @u_f_nonbon(double %lambda) nounwind { entry: %tmp19.i.i = load double* null, align 4 ; <double> [#uses=2] %tmp6.i = fcmp olt double %tmp19.i.i, 1.000000e+00 ; <i1> [#uses=1] @@ -26,5 +26,5 @@ bb502.loopexit.i: ; preds = %bb28.i br i1 false, label %bb.nph53.i, label %bb508.i bb508.i: ; preds = %bb502.loopexit.i, %entry - ret i32 1 + ret double %tmp10.i4 } diff --git a/llvm/test/CodeGen/X86/2011-11-09-FoldImpDefs.ll b/llvm/test/CodeGen/X86/2011-11-09-FoldImpDefs.ll index 095d8c68c22..029aa91658d 100644 --- a/llvm/test/CodeGen/X86/2011-11-09-FoldImpDefs.ll +++ b/llvm/test/CodeGen/X86/2011-11-09-FoldImpDefs.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -verify-regalloc | FileCheck %s +; RUN: llc < %s -disable-cgp-delete-dead-blocks -verify-regalloc | FileCheck %s ; PR11347 ; ; This test case materializes the constant 1 in a register: diff --git a/llvm/test/CodeGen/X86/unreachable-stack-protector.ll b/llvm/test/CodeGen/X86/unreachable-stack-protector.ll index eeebceea71d..b066297ff1b 100644 --- a/llvm/test/CodeGen/X86/unreachable-stack-protector.ll +++ b/llvm/test/CodeGen/X86/unreachable-stack-protector.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s | FileCheck %s +; RUN: llc < %s -disable-cgp-delete-dead-blocks | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" target triple = "x86_64-apple-darwin10.0.0" |

