Enable tail call optimization for functions that return a struct (bug 3664) and for functions that return types that need extending (e.g i1).
llvm-svn: 67934
diff --git a/llvm/test/CodeGen/X86/tailcall-i1.ll b/llvm/test/CodeGen/X86/tailcall-i1.ll
new file mode 100644
index 0000000..0ec6a77
--- /dev/null
+++ b/llvm/test/CodeGen/X86/tailcall-i1.ll
@@ -0,0 +1,6 @@
+; RUN: llvm-as < %s | llc -march=x86 -tailcallopt | grep TAILCALL
+define fastcc i1 @i1test(i32, i32, i32, i32) {
+ entry:
+ %4 = tail call fastcc i1 @i1test( i32 %0, i32 %1, i32 %2, i32 %3)
+ ret i1 %4
+}