Revert r155745

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155746 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Derek Schuff 2012-04-27 23:37:41 +00:00
parent 9dc28b0722
commit f3db6b855e
2 changed files with 0 additions and 16 deletions

View File

@ -1858,8 +1858,6 @@ bool X86FastISel::DoSelectCall(const Instruction *I, const char *MemIntName) {
unsigned AdjStackUp = TII.getCallFrameDestroyOpcode();
unsigned NumBytesCallee = 0;
if (!Subtarget->is64Bit() && !Subtarget->isTargetWindows() &&
!(CS.getCallingConv() == CallingConv::Fast ||
CS.getCallingConv() == CallingConv::GHC) &&
CS.paramHasAttr(1, Attribute::StructRet))
NumBytesCallee = 4;
BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(AdjStackUp))

View File

@ -46,17 +46,3 @@ entry:
; CHECK: addl $40
}
declare void @test3sret(%struct.a* sret)
; Check that fast-isel sret works with fastcc (and does not callee-pop)
define void @test4() nounwind ssp {
entry:
%tmp = alloca %struct.a, align 8
call fastcc void @test4fastccsret(%struct.a* sret %tmp)
ret void
; CHECK: test4:
; CHECK: subl $44
; CHECK: leal 16(%esp)
; CHECK: calll _test4fastccsret
; CHECK addl $40
}
declare fastcc void @test4fastccsret(%struct.a* sret)