mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
Do not promote i32 arguments to i64. This was causing unnecessary sign extension
instructions to be emitted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150782 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2299,10 +2299,7 @@ MipsTargetLowering::LowerCall(SDValue InChain, SDValue Callee,
|
||||
Arg = DAG.getNode(ISD::ZERO_EXTEND, dl, LocVT, Arg);
|
||||
break;
|
||||
case CCValAssign::AExt:
|
||||
if (ValVT == MVT::i32)
|
||||
Arg = DAG.getNode(ISD::SIGN_EXTEND, dl, LocVT, Arg);
|
||||
else
|
||||
Arg = DAG.getNode(ISD::ANY_EXTEND, dl, LocVT, Arg);
|
||||
Arg = DAG.getNode(ISD::ANY_EXTEND, dl, LocVT, Arg);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user