mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-06 01:24:35 +00:00
fast-isel sret. We actually don't need to do anything special on x86. :) rdar://problem/9303592 .
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130348 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1618,7 +1618,6 @@ bool X86FastISel::X86SelectCall(const Instruction *I) {
|
|||||||
|
|
||||||
// FIXME: Only handle *easy* calls for now.
|
// FIXME: Only handle *easy* calls for now.
|
||||||
if (CS.paramHasAttr(AttrInd, Attribute::InReg) ||
|
if (CS.paramHasAttr(AttrInd, Attribute::InReg) ||
|
||||||
CS.paramHasAttr(AttrInd, Attribute::StructRet) ||
|
|
||||||
CS.paramHasAttr(AttrInd, Attribute::Nest) ||
|
CS.paramHasAttr(AttrInd, Attribute::Nest) ||
|
||||||
CS.paramHasAttr(AttrInd, Attribute::ByVal))
|
CS.paramHasAttr(AttrInd, Attribute::ByVal))
|
||||||
return false;
|
return false;
|
||||||
|
@ -238,3 +238,16 @@ define void @test19(double* %p1) {
|
|||||||
; CHECK: test19:
|
; CHECK: test19:
|
||||||
; CHECK: pxor
|
; CHECK: pxor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
; 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)
|
||||||
|
Reference in New Issue
Block a user