mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 15:19:33 +00:00
Remove some unused/redundant code.
llvm-svn: 107622
This commit is contained in:
parent
252f82acc6
commit
59cf410bf5
@ -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