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:
Akira Hatanaka
2012-02-17 02:20:26 +00:00
parent 3106b8b18b
commit 38bdc5762f
2 changed files with 16 additions and 14 deletions

View File

@ -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;
}