mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 05:35:11 +00:00
Remove dead code and silence warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122957 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
461f1fc359
commit
5191e7cc26
@ -266,7 +266,6 @@ eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj,
|
|||||||
MachineInstr &MI = *II;
|
MachineInstr &MI = *II;
|
||||||
MachineFunction &MF = *MI.getParent()->getParent();
|
MachineFunction &MF = *MI.getParent()->getParent();
|
||||||
MachineFrameInfo *MFI = MF.getFrameInfo();
|
MachineFrameInfo *MFI = MF.getFrameInfo();
|
||||||
MBlazeFunctionInfo *MBlazeFI = MF.getInfo<MBlazeFunctionInfo>();
|
|
||||||
|
|
||||||
unsigned i = 0;
|
unsigned i = 0;
|
||||||
while (!MI.getOperand(i).isFI()) {
|
while (!MI.getOperand(i).isFI()) {
|
||||||
@ -281,10 +280,11 @@ eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj,
|
|||||||
dbgs() << "<--------->\n" << MI);
|
dbgs() << "<--------->\n" << MI);
|
||||||
|
|
||||||
int FrameIndex = MI.getOperand(i).getIndex();
|
int FrameIndex = MI.getOperand(i).getIndex();
|
||||||
int stackSize = MF.getFrameInfo()->getStackSize();
|
int stackSize = MFI->getStackSize();
|
||||||
int spOffset = MF.getFrameInfo()->getObjectOffset(FrameIndex);
|
int spOffset = MFI->getObjectOffset(FrameIndex);
|
||||||
|
|
||||||
DEBUG(dbgs() << "FrameIndex : " << FrameIndex << "\n"
|
DEBUG(MBlazeFunctionInfo *MBlazeFI = MF.getInfo<MBlazeFunctionInfo>();
|
||||||
|
dbgs() << "FrameIndex : " << FrameIndex << "\n"
|
||||||
<< "spOffset : " << spOffset << "\n"
|
<< "spOffset : " << spOffset << "\n"
|
||||||
<< "stackSize : " << stackSize << "\n"
|
<< "stackSize : " << stackSize << "\n"
|
||||||
<< "isFixed : " << MFI->isFixedObjectIndex(FrameIndex) << "\n"
|
<< "isFixed : " << MFI->isFixedObjectIndex(FrameIndex) << "\n"
|
||||||
|
@ -1548,7 +1548,6 @@ bool X86FastISel::X86SelectCall(const Instruction *I) {
|
|||||||
bool Emitted = X86FastEmitExtend(ISD::SIGN_EXTEND, VA.getLocVT(),
|
bool Emitted = X86FastEmitExtend(ISD::SIGN_EXTEND, VA.getLocVT(),
|
||||||
Arg, ArgVT, Arg);
|
Arg, ArgVT, Arg);
|
||||||
assert(Emitted && "Failed to emit a sext!"); (void)Emitted;
|
assert(Emitted && "Failed to emit a sext!"); (void)Emitted;
|
||||||
Emitted = true;
|
|
||||||
ArgVT = VA.getLocVT();
|
ArgVT = VA.getLocVT();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -1556,7 +1555,6 @@ bool X86FastISel::X86SelectCall(const Instruction *I) {
|
|||||||
bool Emitted = X86FastEmitExtend(ISD::ZERO_EXTEND, VA.getLocVT(),
|
bool Emitted = X86FastEmitExtend(ISD::ZERO_EXTEND, VA.getLocVT(),
|
||||||
Arg, ArgVT, Arg);
|
Arg, ArgVT, Arg);
|
||||||
assert(Emitted && "Failed to emit a zext!"); (void)Emitted;
|
assert(Emitted && "Failed to emit a zext!"); (void)Emitted;
|
||||||
Emitted = true;
|
|
||||||
ArgVT = VA.getLocVT();
|
ArgVT = VA.getLocVT();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user