mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
Remove some unused/redundant code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107622 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
32b4b5aea6
commit
5cb97d16f8
@ -53,10 +53,6 @@ namespace llvm {
|
||||
static int minStackSize() {
|
||||
return (2 * stackSlotSize());
|
||||
}
|
||||
//! Frame size required to spill all registers plus frame info
|
||||
static int fullSpillSize() {
|
||||
return (SPURegisterInfo::getNumArgRegs() * stackSlotSize());
|
||||
}
|
||||
//! Convert frame index to stack offset
|
||||
static int FItoStackOffset(int frame_index) {
|
||||
return frame_index * stackSlotSize();
|
||||
|
@ -1179,24 +1179,8 @@ SPUTargetLowering::LowerCall(SDValue Chain, SDValue Callee,
|
||||
case MVT::i32:
|
||||
case MVT::i64:
|
||||
case MVT::i128:
|
||||
if (ArgRegIdx != NumArgRegs) {
|
||||
RegsToPass.push_back(std::make_pair(ArgRegs[ArgRegIdx++], Arg));
|
||||
} else {
|
||||
MemOpChains.push_back(DAG.getStore(Chain, dl, Arg, PtrOff, NULL, 0,
|
||||
false, false, 0));
|
||||
ArgOffset += StackSlotSize;
|
||||
}
|
||||
break;
|
||||
case MVT::f32:
|
||||
case MVT::f64:
|
||||
if (ArgRegIdx != NumArgRegs) {
|
||||
RegsToPass.push_back(std::make_pair(ArgRegs[ArgRegIdx++], Arg));
|
||||
} else {
|
||||
MemOpChains.push_back(DAG.getStore(Chain, dl, Arg, PtrOff, NULL, 0,
|
||||
false, false, 0));
|
||||
ArgOffset += StackSlotSize;
|
||||
}
|
||||
break;
|
||||
case MVT::v2i64:
|
||||
case MVT::v2f64:
|
||||
case MVT::v4f32:
|
||||
|
Loading…
Reference in New Issue
Block a user