mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
Revert r130348; causing buildbot issues on x86-32.
llvm-svn: 130412
This commit is contained in:
parent
5ea854079d
commit
7b68473355
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user