Revert r130348; causing buildbot issues on x86-32.
authorEli Friedman <eli.friedman@gmail.com>
Thu, 28 Apr 2011 18:06:10 +0000 (18:06 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 28 Apr 2011 18:06:10 +0000 (18:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130412 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86FastISel.cpp
test/CodeGen/X86/fast-isel-x86-64.ll

index 9d25f4ecdcecf2822a6341a5cc8ad4dba08f753c..82ed9bad43b79c02e1c966682f51533f2d21152b 100644 (file)
@@ -1618,6 +1618,7 @@ bool X86FastISel::X86SelectCall(const Instruction *I) {
 
     // FIXME: Only handle *easy* calls for now.
     if (CS.paramHasAttr(AttrInd, Attribute::InReg) ||
+        CS.paramHasAttr(AttrInd, Attribute::StructRet) ||
         CS.paramHasAttr(AttrInd, Attribute::Nest) ||
         CS.paramHasAttr(AttrInd, Attribute::ByVal))
       return false;
index f7bfe722b37db55b01d80928b399b0cd617876fd..1bc25d95654271c1d15b573ff546dcd8a4f332e6 100644 (file)
@@ -260,3 +260,16 @@ define void @test21(double* %p1) {
 ; CHECK-NOT: pxor
 ; CHECK: movsd LCPI
 }
+
+; Check that we fast-isel sret
+%struct.a = type { i64, i64, i64 }
+define void @test20() nounwind ssp {
+entry:
+  %tmp = alloca %struct.a, align 8
+  call void @test20sret(%struct.a* sret %tmp)
+  ret void
+; CHECK: test20:
+; CHECK: leaq (%rsp), %rdi
+; CHECK: callq _test20sret
+}
+declare void @test20sret(%struct.a* sret)