diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-10-26 07:49:03 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-10-26 07:49:03 +0000 |
commit | aaf510c932cf194fef5e877b19283176e2608f08 (patch) | |
tree | 10829129642768eed7eac3b15bd8a3a96631f333 /test/CodeGen/X86/pre-split6.ll | |
parent | ac1cfa09d73923082ac7fd9bbd2c1f056bc02455 (diff) |
Do not shrink wrap live interval in a mbb if it's livein any of its successor blocks. The mbb can be revisited again after all of the successors are processed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58184 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/pre-split6.ll')
-rw-r--r-- | test/CodeGen/X86/pre-split6.ll | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/CodeGen/X86/pre-split6.ll b/test/CodeGen/X86/pre-split6.ll new file mode 100644 index 0000000000..c075b2a39e --- /dev/null +++ b/test/CodeGen/X86/pre-split6.ll @@ -0,0 +1,36 @@ +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -pre-alloc-split + +@current_surfaces.b = external global i1 ; <i1*> [#uses=1] + +declare double @sin(double) nounwind readonly + +declare double @asin(double) nounwind readonly + +define fastcc void @trace_line(i32 %line) nounwind { +entry: + %.b3 = load i1* @current_surfaces.b ; <i1> [#uses=1] + br i1 %.b3, label %bb.nph, label %return + +bb.nph: ; preds = %entry + %0 = load double* null, align 8 ; <double> [#uses=1] + %1 = load double* null, align 8 ; <double> [#uses=2] + %2 = fcmp une double %0, 0.000000e+00 ; <i1> [#uses=1] + br i1 %2, label %bb9.i, label %bb13.i + +bb9.i: ; preds = %bb.nph + %3 = tail call double @asin(double 0.000000e+00) nounwind readonly ; <double> [#uses=0] + %4 = fdiv double 1.000000e+00, %1 ; <double> [#uses=1] + %5 = mul double %4, 0.000000e+00 ; <double> [#uses=1] + %6 = tail call double @asin(double %5) nounwind readonly ; <double> [#uses=0] + unreachable + +bb13.i: ; preds = %bb.nph + %7 = fdiv double 1.000000e+00, %1 ; <double> [#uses=1] + %8 = tail call double @sin(double 0.000000e+00) nounwind readonly ; <double> [#uses=1] + %9 = mul double %7, %8 ; <double> [#uses=1] + %10 = tail call double @asin(double %9) nounwind readonly ; <double> [#uses=0] + unreachable + +return: ; preds = %entry + ret void +} |