mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
Eliminate some unused variable compile time warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59952 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d21c6ef9d0
commit
24ac408ce8
@ -401,6 +401,7 @@ bool FastISel::SelectCall(User *I) {
|
|||||||
bool InsertedCopy = TII.copyRegToReg(*MBB, MBB->end(), ResultReg,
|
bool InsertedCopy = TII.copyRegToReg(*MBB, MBB->end(), ResultReg,
|
||||||
Reg, RC, RC);
|
Reg, RC, RC);
|
||||||
assert(InsertedCopy && "Can't copy address registers!");
|
assert(InsertedCopy && "Can't copy address registers!");
|
||||||
|
InsertedCopy = InsertedCopy;
|
||||||
UpdateValueMap(I, ResultReg);
|
UpdateValueMap(I, ResultReg);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -434,6 +435,7 @@ bool FastISel::SelectCall(User *I) {
|
|||||||
bool InsertedCopy = TII.copyRegToReg(*MBB, MBB->end(), ResultReg,
|
bool InsertedCopy = TII.copyRegToReg(*MBB, MBB->end(), ResultReg,
|
||||||
Reg, RC, RC);
|
Reg, RC, RC);
|
||||||
assert(InsertedCopy && "Can't copy address registers!");
|
assert(InsertedCopy && "Can't copy address registers!");
|
||||||
|
InsertedCopy = InsertedCopy;
|
||||||
UpdateValueMap(I, ResultReg);
|
UpdateValueMap(I, ResultReg);
|
||||||
} else {
|
} else {
|
||||||
unsigned ResultReg =
|
unsigned ResultReg =
|
||||||
|
@ -114,12 +114,14 @@ class VISIBILITY_HIDDEN SelectionDAGLegalize {
|
|||||||
void AddPromotedOperand(SDValue From, SDValue To) {
|
void AddPromotedOperand(SDValue From, SDValue To) {
|
||||||
bool isNew = PromotedNodes.insert(std::make_pair(From, To)).second;
|
bool isNew = PromotedNodes.insert(std::make_pair(From, To)).second;
|
||||||
assert(isNew && "Got into the map somehow?");
|
assert(isNew && "Got into the map somehow?");
|
||||||
|
isNew = isNew;
|
||||||
// If someone requests legalization of the new node, return itself.
|
// If someone requests legalization of the new node, return itself.
|
||||||
LegalizedNodes.insert(std::make_pair(To, To));
|
LegalizedNodes.insert(std::make_pair(To, To));
|
||||||
}
|
}
|
||||||
void AddWidenedOperand(SDValue From, SDValue To) {
|
void AddWidenedOperand(SDValue From, SDValue To) {
|
||||||
bool isNew = WidenNodes.insert(std::make_pair(From, To)).second;
|
bool isNew = WidenNodes.insert(std::make_pair(From, To)).second;
|
||||||
assert(isNew && "Got into the map somehow?");
|
assert(isNew && "Got into the map somehow?");
|
||||||
|
isNew = isNew;
|
||||||
// If someone requests legalization of the new node, return itself.
|
// If someone requests legalization of the new node, return itself.
|
||||||
LegalizedNodes.insert(std::make_pair(To, To));
|
LegalizedNodes.insert(std::make_pair(To, To));
|
||||||
}
|
}
|
||||||
@ -7163,6 +7165,7 @@ void SelectionDAGLegalize::ExpandOp(SDValue Op, SDValue &Lo, SDValue &Hi){
|
|||||||
bool isNew =
|
bool isNew =
|
||||||
ExpandedNodes.insert(std::make_pair(Op, std::make_pair(Lo, Hi))).second;
|
ExpandedNodes.insert(std::make_pair(Op, std::make_pair(Lo, Hi))).second;
|
||||||
assert(isNew && "Value already expanded?!?");
|
assert(isNew && "Value already expanded?!?");
|
||||||
|
isNew = isNew;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// SplitVectorOp - Given an operand of vector type, break it down into
|
/// SplitVectorOp - Given an operand of vector type, break it down into
|
||||||
@ -7509,6 +7512,7 @@ void SelectionDAGLegalize::SplitVectorOp(SDValue Op, SDValue &Lo,
|
|||||||
bool isNew =
|
bool isNew =
|
||||||
SplitNodes.insert(std::make_pair(Op, std::make_pair(Lo, Hi))).second;
|
SplitNodes.insert(std::make_pair(Op, std::make_pair(Lo, Hi))).second;
|
||||||
assert(isNew && "Value already split?!?");
|
assert(isNew && "Value already split?!?");
|
||||||
|
isNew = isNew;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -7676,6 +7680,7 @@ SDValue SelectionDAGLegalize::ScalarizeVectorOp(SDValue Op) {
|
|||||||
Result = LegalizeOp(Result);
|
Result = LegalizeOp(Result);
|
||||||
bool isNew = ScalarizedNodes.insert(std::make_pair(Op, Result)).second;
|
bool isNew = ScalarizedNodes.insert(std::make_pair(Op, Result)).second;
|
||||||
assert(isNew && "Value already scalarized?");
|
assert(isNew && "Value already scalarized?");
|
||||||
|
isNew = isNew;
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1212,9 +1212,11 @@ SDValue SelectionDAG::getSrcValue(const Value *V) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SDValue SelectionDAG::getMemOperand(const MachineMemOperand &MO) {
|
SDValue SelectionDAG::getMemOperand(const MachineMemOperand &MO) {
|
||||||
|
#ifndef NDEBUG
|
||||||
const Value *v = MO.getValue();
|
const Value *v = MO.getValue();
|
||||||
assert((!v || isa<PointerType>(v->getType())) &&
|
assert((!v || isa<PointerType>(v->getType())) &&
|
||||||
"SrcValue is not a pointer?");
|
"SrcValue is not a pointer?");
|
||||||
|
#endif
|
||||||
|
|
||||||
FoldingSetNodeID ID;
|
FoldingSetNodeID ID;
|
||||||
AddNodeIDNode(ID, ISD::MEMOPERAND, getVTList(MVT::Other), 0, 0);
|
AddNodeIDNode(ID, ISD::MEMOPERAND, getVTList(MVT::Other), 0, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user