mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-30 15:45:26 +00:00
Killing warnings
llvm-svn: 1175
This commit is contained in:
parent
e33afc1d46
commit
15f524c88e
@ -825,7 +825,7 @@ SetMemOperands_Internal(MachineInstr* minstr,
|
||||
MemAccessInst* memInst = (MemAccessInst*) vmInstrNode->getInstruction();
|
||||
|
||||
// Initialize so we default to storing the offset in a register.
|
||||
int64_t smallConstOffset;
|
||||
int64_t smallConstOffset = 0;
|
||||
Value* valueForRegOffset = NULL;
|
||||
MachineOperand::MachineOperandType offsetOpType =MachineOperand::MO_VirtualRegister;
|
||||
|
||||
@ -835,7 +835,7 @@ SetMemOperands_Internal(MachineInstr* minstr,
|
||||
if (idxVec.size() > 0)
|
||||
{
|
||||
bool isConstantOffset = false;
|
||||
unsigned offset;
|
||||
unsigned offset = 0;
|
||||
|
||||
const PointerType* ptrType = (PointerType*) ptrVal->getType();
|
||||
|
||||
@ -1616,7 +1616,7 @@ GetInstructionsByRule(InstructionNode* subtreeRoot,
|
||||
|
||||
bool mustClearReg;
|
||||
int valueToMove;
|
||||
MachineOpCode movOpCode;
|
||||
MachineOpCode movOpCode = 0;
|
||||
Value* ccValue = NULL;
|
||||
|
||||
if (subtreeRoot->leftChild()->getValue()->getType()->isIntegral() ||
|
||||
|
@ -301,6 +301,7 @@ class UltraSparcRegInfo : public MachineRegInfo
|
||||
else {
|
||||
cerr << "TypeID: " << ty << endl;
|
||||
assert(0 && "Cannot resolve register class for type");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(isCCReg)
|
||||
|
@ -523,9 +523,10 @@ void UltraSparcRegInfo::colorCallArgs(const MachineInstr *const CallMI,
|
||||
CorrectCol = SparcIntRegOrder::o0;
|
||||
else if(RegClassID == FloatRegClassID)
|
||||
CorrectCol = SparcFloatRegOrder::f0;
|
||||
else
|
||||
else {
|
||||
assert( 0 && "Unknown RegClass");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// if the LR received the correct color, NOTHING to do
|
||||
|
||||
@ -787,15 +788,15 @@ void UltraSparcRegInfo::colorRetValue(const MachineInstr *const RetMI,
|
||||
unsigned RegClassID = getRegClassIDOfValue(RetVal);
|
||||
unsigned RegType = getRegType( RetVal );
|
||||
|
||||
|
||||
unsigned CorrectCol;
|
||||
if(RegClassID == IntRegClassID)
|
||||
CorrectCol = SparcIntRegOrder::i0;
|
||||
else if(RegClassID == FloatRegClassID)
|
||||
CorrectCol = SparcFloatRegOrder::f0;
|
||||
else
|
||||
else {
|
||||
assert( 0 && "Unknown RegClass");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// if the LR received the correct color, NOTHING to do
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user