mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
Remove initialized but otherwise unused variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107127 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -180,7 +180,6 @@ bool LiveInterval::overlaps(SlotIndex Start, SlotIndex End) const {
|
|||||||
void LiveInterval::extendIntervalEndTo(Ranges::iterator I, SlotIndex NewEnd) {
|
void LiveInterval::extendIntervalEndTo(Ranges::iterator I, SlotIndex NewEnd) {
|
||||||
assert(I != ranges.end() && "Not a valid interval!");
|
assert(I != ranges.end() && "Not a valid interval!");
|
||||||
VNInfo *ValNo = I->valno;
|
VNInfo *ValNo = I->valno;
|
||||||
SlotIndex OldEnd = I->end;
|
|
||||||
|
|
||||||
// Search for the first interval that we can't merge with.
|
// Search for the first interval that we can't merge with.
|
||||||
Ranges::iterator MergeTo = next(I);
|
Ranges::iterator MergeTo = next(I);
|
||||||
|
@ -2404,7 +2404,6 @@ void SelectionDAGBuilder::visitPtrToInt(const User &I) {
|
|||||||
// What to do depends on the size of the integer and the size of the pointer.
|
// What to do depends on the size of the integer and the size of the pointer.
|
||||||
// We can either truncate, zero extend, or no-op, accordingly.
|
// We can either truncate, zero extend, or no-op, accordingly.
|
||||||
SDValue N = getValue(I.getOperand(0));
|
SDValue N = getValue(I.getOperand(0));
|
||||||
EVT SrcVT = N.getValueType();
|
|
||||||
EVT DestVT = TLI.getValueType(I.getType());
|
EVT DestVT = TLI.getValueType(I.getType());
|
||||||
setValue(&I, DAG.getZExtOrTrunc(N, getCurDebugLoc(), DestVT));
|
setValue(&I, DAG.getZExtOrTrunc(N, getCurDebugLoc(), DestVT));
|
||||||
}
|
}
|
||||||
@ -2413,7 +2412,6 @@ void SelectionDAGBuilder::visitIntToPtr(const User &I) {
|
|||||||
// What to do depends on the size of the integer and the size of the pointer.
|
// What to do depends on the size of the integer and the size of the pointer.
|
||||||
// We can either truncate, zero extend, or no-op, accordingly.
|
// We can either truncate, zero extend, or no-op, accordingly.
|
||||||
SDValue N = getValue(I.getOperand(0));
|
SDValue N = getValue(I.getOperand(0));
|
||||||
EVT SrcVT = N.getValueType();
|
|
||||||
EVT DestVT = TLI.getValueType(I.getType());
|
EVT DestVT = TLI.getValueType(I.getType());
|
||||||
setValue(&I, DAG.getZExtOrTrunc(N, getCurDebugLoc(), DestVT));
|
setValue(&I, DAG.getZExtOrTrunc(N, getCurDebugLoc(), DestVT));
|
||||||
}
|
}
|
||||||
|
@ -1886,7 +1886,6 @@ ARMTargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op, SelectionDAG &DAG,
|
|||||||
DAG.getLoad(PtrVT, dl, DAG.getEntryNode(), CPAddr,
|
DAG.getLoad(PtrVT, dl, DAG.getEntryNode(), CPAddr,
|
||||||
PseudoSourceValue::getConstantPool(), 0,
|
PseudoSourceValue::getConstantPool(), 0,
|
||||||
false, false, 0);
|
false, false, 0);
|
||||||
SDValue Chain = Result.getValue(1);
|
|
||||||
|
|
||||||
if (RelocM == Reloc::PIC_) {
|
if (RelocM == Reloc::PIC_) {
|
||||||
SDValue PICLabel = DAG.getConstant(ARMPCLabelIndex, MVT::i32);
|
SDValue PICLabel = DAG.getConstant(ARMPCLabelIndex, MVT::i32);
|
||||||
|
@ -275,7 +275,6 @@ namespace {
|
|||||||
|
|
||||||
SDNode *emitBuildVector(SDNode *bvNode) {
|
SDNode *emitBuildVector(SDNode *bvNode) {
|
||||||
EVT vecVT = bvNode->getValueType(0);
|
EVT vecVT = bvNode->getValueType(0);
|
||||||
EVT eltVT = vecVT.getVectorElementType();
|
|
||||||
DebugLoc dl = bvNode->getDebugLoc();
|
DebugLoc dl = bvNode->getDebugLoc();
|
||||||
|
|
||||||
// Check to see if this vector can be represented as a CellSPU immediate
|
// Check to see if this vector can be represented as a CellSPU immediate
|
||||||
|
@ -439,10 +439,8 @@ LowerJumpTable(SDValue Op, SelectionDAG &DAG) const {
|
|||||||
SDValue MBlazeTargetLowering::
|
SDValue MBlazeTargetLowering::
|
||||||
LowerConstantPool(SDValue Op, SelectionDAG &DAG) const {
|
LowerConstantPool(SDValue Op, SelectionDAG &DAG) const {
|
||||||
SDValue ResNode;
|
SDValue ResNode;
|
||||||
EVT PtrVT = Op.getValueType();
|
|
||||||
ConstantPoolSDNode *N = cast<ConstantPoolSDNode>(Op);
|
ConstantPoolSDNode *N = cast<ConstantPoolSDNode>(Op);
|
||||||
const Constant *C = N->getConstVal();
|
const Constant *C = N->getConstVal();
|
||||||
SDValue Zero = DAG.getConstant(0, PtrVT);
|
|
||||||
DebugLoc dl = Op.getDebugLoc();
|
DebugLoc dl = Op.getDebugLoc();
|
||||||
|
|
||||||
SDValue CP = DAG.getTargetConstantPool(C, MVT::i32, N->getAlignment(),
|
SDValue CP = DAG.getTargetConstantPool(C, MVT::i32, N->getAlignment(),
|
||||||
|
@ -2737,7 +2737,6 @@ PPCTargetLowering::LowerCall_SVR4(SDValue Chain, SDValue Callee,
|
|||||||
assert((CallConv == CallingConv::C ||
|
assert((CallConv == CallingConv::C ||
|
||||||
CallConv == CallingConv::Fast) && "Unknown calling convention!");
|
CallConv == CallingConv::Fast) && "Unknown calling convention!");
|
||||||
|
|
||||||
EVT PtrVT = DAG.getTargetLoweringInfo().getPointerTy();
|
|
||||||
unsigned PtrByteSize = 4;
|
unsigned PtrByteSize = 4;
|
||||||
|
|
||||||
MachineFunction &MF = DAG.getMachineFunction();
|
MachineFunction &MF = DAG.getMachineFunction();
|
||||||
|
@ -1379,7 +1379,6 @@ SDValue XCoreTargetLowering::PerformDAGCombine(SDNode *N,
|
|||||||
SDValue Mul0, Mul1, Addend0, Addend1;
|
SDValue Mul0, Mul1, Addend0, Addend1;
|
||||||
if (N->getValueType(0) == MVT::i32 &&
|
if (N->getValueType(0) == MVT::i32 &&
|
||||||
isADDADDMUL(SDValue(N, 0), Mul0, Mul1, Addend0, Addend1, true)) {
|
isADDADDMUL(SDValue(N, 0), Mul0, Mul1, Addend0, Addend1, true)) {
|
||||||
SDValue Zero = DAG.getConstant(0, MVT::i32);
|
|
||||||
SDValue Ignored = DAG.getNode(XCoreISD::LMUL, dl,
|
SDValue Ignored = DAG.getNode(XCoreISD::LMUL, dl,
|
||||||
DAG.getVTList(MVT::i32, MVT::i32), Mul0,
|
DAG.getVTList(MVT::i32, MVT::i32), Mul0,
|
||||||
Mul1, Addend0, Addend1);
|
Mul1, Addend0, Addend1);
|
||||||
|
Reference in New Issue
Block a user