diff options
author | Chris Lattner <sabre@nondot.org> | 2011-04-19 05:09:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-04-19 05:09:50 +0000 |
commit | 5f4b7834262ac144640acbb1932c907d1f434cc0 (patch) | |
tree | 23856ed52f7c3c6961ee1d39bdd0bf668649c894 /llvm/test/CodeGen/X86/fast-isel-x86-64.ll | |
parent | d7f7c939142f4a178d58a01fd8ce7b61c11b5d1b (diff) | |
download | bcm5719-llvm-5f4b7834262ac144640acbb1932c907d1f434cc0.tar.gz bcm5719-llvm-5f4b7834262ac144640acbb1932c907d1f434cc0.zip |
Implement support for fast isel of calls of i1 arguments, even though they are illegal,
when they are a truncate from something else. This eliminates fully half of all the
fastisel rejections on a test c++ file I'm working with, which should make a substantial
improvement for -O0 compile of c++ code.
This fixed rdar://9297003 - fast isel bails out on all functions taking bools
llvm-svn: 129752
Diffstat (limited to 'llvm/test/CodeGen/X86/fast-isel-x86-64.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/fast-isel-x86-64.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel-x86-64.ll b/llvm/test/CodeGen/X86/fast-isel-x86-64.ll index 2e6bafe0720..508af25772c 100644 --- a/llvm/test/CodeGen/X86/fast-isel-x86-64.ll +++ b/llvm/test/CodeGen/X86/fast-isel-x86-64.ll @@ -157,3 +157,16 @@ define void @test13() nounwind { ; CHECK-NEXT: callq } + + +; rdar://9297003 - fast isel bails out on all functions taking bools +define void @test14(i8 %tmp) nounwind ssp noredzone { +entry: + %tobool = trunc i8 %tmp to i1 + call void @test13f(i1 zeroext %tobool) noredzone + ret void +; CHECK: test14: +; CHECK: andb $1, +; CHECK: callq +} + |