aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2007-09-21 14:55:38 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2007-09-21 14:55:38 +0000
commit1242d2809311db22712e2dededb4d6904948f45f (patch)
treedb3fd76e8b34396212fa90b208464ca6735aff1a
parent8497764d703aa5361790eaf72e64da33e31f2503 (diff)
downloadexternal_llvm-1242d2809311db22712e2dededb4d6904948f45f.zip
external_llvm-1242d2809311db22712e2dededb4d6904948f45f.tar.gz
external_llvm-1242d2809311db22712e2dededb4d6904948f45f.tar.bz2
small cleanup: use LowerMemArgument in LowerFastCCArguments also
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42189 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86ISelLowering.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp
index bdd424f..dccf285 100644
--- a/lib/Target/X86/X86ISelLowering.cpp
+++ b/lib/Target/X86/X86ISelLowering.cpp
@@ -1022,12 +1022,7 @@ X86TargetLowering::LowerFastCCArguments(SDOperand Op, SelectionDAG &DAG) {
ArgValues.push_back(ArgValue);
} else {
assert(VA.isMemLoc());
-
- // Create the nodes corresponding to a load from this parameter slot.
- int FI = MFI->CreateFixedObject(MVT::getSizeInBits(VA.getValVT())/8,
- VA.getLocMemOffset());
- SDOperand FIN = DAG.getFrameIndex(FI, getPointerTy());
- ArgValues.push_back(DAG.getLoad(VA.getValVT(), Root, FIN, NULL, 0));
+ ArgValues.push_back(LowerMemArgument(Op, DAG, VA, MFI, Root, i));
}
}