diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-02-17 02:20:26 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-02-17 02:20:26 +0000 |
commit | 38bdc5762f58b64d652864d154bf1b4dffb5ed39 (patch) | |
tree | 5f747d99bb888da96c230e7f88b16bf378029037 /lib/Target/Mips/MipsISelLowering.cpp | |
parent | 3106b8b18b6fbeb77ac3f76b7179e2569bbffef9 (diff) |
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
Diffstat (limited to 'lib/Target/Mips/MipsISelLowering.cpp')
-rw-r--r-- | lib/Target/Mips/MipsISelLowering.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.cpp b/lib/Target/Mips/MipsISelLowering.cpp index 23d0a6dbc5..616e8070e3 100644 --- a/lib/Target/Mips/MipsISelLowering.cpp +++ b/lib/Target/Mips/MipsISelLowering.cpp @@ -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; } |