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 | b44101c1401c23fb86fe649309f52e823206147d (patch) | |
tree | 033481cbbbbb8e116f4aceb75a01e882bddc01b3 /test/CodeGen/X86/fast-isel-x86-64.ll | |
parent | e03b8d31624b415805940500a40195a540ca94be (diff) | |
download | llvm-b44101c1401c23fb86fe649309f52e823206147d.tar.gz llvm-b44101c1401c23fb86fe649309f52e823206147d.tar.bz2 llvm-b44101c1401c23fb86fe649309f52e823206147d.tar.xz |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/fast-isel-x86-64.ll')
-rw-r--r-- | test/CodeGen/X86/fast-isel-x86-64.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fast-isel-x86-64.ll b/test/CodeGen/X86/fast-isel-x86-64.ll index 2e6bafe072..508af25772 100644 --- a/test/CodeGen/X86/fast-isel-x86-64.ll +++ b/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 +} + |