From 5f4b7834262ac144640acbb1932c907d1f434cc0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 19 Apr 2011 05:09:50 +0000 Subject: 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 --- llvm/test/CodeGen/X86/fast-isel-x86-64.ll | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'llvm/test/CodeGen/X86/fast-isel-x86-64.ll') 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 +} + -- cgit v1.2.3