Skip to content

Commit aa15596

Browse files
[llvm] Remove unused local variables (NFC) (llvm#138478)
1 parent 9a7e307 commit aa15596

18 files changed

+0
-31
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12356,7 +12356,6 @@ SDValue DAGCombiner::visitMSTORE(SDNode *N) {
1235612356
SDValue Chain = MST->getChain();
1235712357
SDValue Value = MST->getValue();
1235812358
SDValue Ptr = MST->getBasePtr();
12359-
SDLoc DL(N);
1236012359

1236112360
// Zap masked stores with a zero mask.
1236212361
if (ISD::isConstantSplatVectorAllZeros(Mask.getNode()))
@@ -12559,7 +12558,6 @@ SDValue DAGCombiner::visitMGATHER(SDNode *N) {
1255912558
SDValue DAGCombiner::visitMLOAD(SDNode *N) {
1256012559
MaskedLoadSDNode *MLD = cast<MaskedLoadSDNode>(N);
1256112560
SDValue Mask = MLD->getMask();
12562-
SDLoc DL(N);
1256312561

1256412562
// Zap masked loads with a zero mask.
1256512563
if (ISD::isConstantSplatVectorAllZeros(Mask.getNode()))
@@ -23725,7 +23723,6 @@ SDValue DAGCombiner::reduceBuildVecTruncToBitCast(SDNode *N) {
2372523723
if (!DAG.getDataLayout().isLittleEndian())
2372623724
return SDValue();
2372723725

23728-
SDLoc DL(N);
2372923726
EVT OutScalarTy = VT.getScalarType();
2373023727
uint64_t ScalarTypeBitsize = OutScalarTy.getSizeInBits();
2373123728

llvm/lib/LTO/LTO.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,6 @@ void LTO::addModuleToGlobalRes(ArrayRef<InputFile::Symbol> Syms,
634634
auto *ResI = Res.begin();
635635
auto *ResE = Res.end();
636636
(void)ResE;
637-
const Triple TT(RegularLTO.CombinedModule->getTargetTriple());
638637
for (const InputFile::Symbol &Sym : Syms) {
639638
assert(ResI != ResE);
640639
SymbolResolution Res = *ResI++;

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3099,7 +3099,6 @@ AArch64TargetLowering::EmitDynamicProbedAlloc(MachineInstr &MI,
30993099
MachineBasicBlock *MBB) const {
31003100
MachineFunction &MF = *MBB->getParent();
31013101
MachineBasicBlock::iterator MBBI = MI.getIterator();
3102-
DebugLoc DL = MBB->findDebugLoc(MBBI);
31033102
const AArch64InstrInfo &TII =
31043103
*MF.getSubtarget<AArch64Subtarget>().getInstrInfo();
31053104
Register TargetReg = MI.getOperand(0).getReg();
@@ -11953,7 +11952,6 @@ SDValue AArch64TargetLowering::LowerSPONENTRY(SDValue Op,
1195311952
MachineFrameInfo &MFI = DAG.getMachineFunction().getFrameInfo();
1195411953

1195511954
EVT VT = getPointerTy(DAG.getDataLayout());
11956-
SDLoc DL(Op);
1195711955
int FI = MFI.CreateFixedObject(4, 0, false);
1195811956
return DAG.getFrameIndex(FI, VT);
1195911957
}

llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,6 @@ void AMDGPUDAGToDAGISel::SelectADD_SUB_I64(SDNode *N) {
997997
}
998998

999999
void AMDGPUDAGToDAGISel::SelectAddcSubb(SDNode *N) {
1000-
SDLoc DL(N);
10011000
SDValue LHS = N->getOperand(0);
10021001
SDValue RHS = N->getOperand(1);
10031002
SDValue CI = N->getOperand(2);
@@ -1050,7 +1049,6 @@ void AMDGPUDAGToDAGISel::SelectUADDO_USUBO(SDNode *N) {
10501049
}
10511050

10521051
void AMDGPUDAGToDAGISel::SelectFMA_W_CHAIN(SDNode *N) {
1053-
SDLoc SL(N);
10541052
// src0_modifiers, src0, src1_modifiers, src1, src2_modifiers, src2, clamp, omod
10551053
SDValue Ops[10];
10561054

@@ -1071,7 +1069,6 @@ void AMDGPUDAGToDAGISel::SelectFMA_W_CHAIN(SDNode *N) {
10711069
}
10721070

10731071
void AMDGPUDAGToDAGISel::SelectFMUL_W_CHAIN(SDNode *N) {
1074-
SDLoc SL(N);
10751072
// src0_modifiers, src0, src1_modifiers, src1, clamp, omod
10761073
SDValue Ops[8];
10771074

@@ -1086,7 +1083,6 @@ void AMDGPUDAGToDAGISel::SelectFMUL_W_CHAIN(SDNode *N) {
10861083
// We need to handle this here because tablegen doesn't support matching
10871084
// instructions with multiple outputs.
10881085
void AMDGPUDAGToDAGISel::SelectDIV_SCALE(SDNode *N) {
1089-
SDLoc SL(N);
10901086
EVT VT = N->getValueType(0);
10911087

10921088
assert(VT == MVT::f32 || VT == MVT::f64);

llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2629,8 +2629,6 @@ void AMDGPURegisterBankInfo::applyMappingImpl(
26292629
assert(MRI.getRegBankOrNull(DstReg) == &AMDGPU::VGPRRegBank &&
26302630
"The destination operand should be in vector registers.");
26312631

2632-
DebugLoc DL = MI.getDebugLoc();
2633-
26342632
// Extract the lower subregister from the first operand.
26352633
Register Op0L = MRI.createVirtualRegister(&AMDGPU::VGPR_32RegClass);
26362634
MRI.setRegClass(Op0L, &AMDGPU::VGPR_32RegClass);

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11807,7 +11807,6 @@ static unsigned getBasePtrIndex(const MemSDNode *N) {
1180711807
SDValue SITargetLowering::performMemSDNodeCombine(MemSDNode *N,
1180811808
DAGCombinerInfo &DCI) const {
1180911809
SelectionDAG &DAG = DCI.DAG;
11810-
SDLoc SL(N);
1181111810

1181211811
unsigned PtrIdx = getBasePtrIndex(N);
1181311812
SDValue Ptr = N->getOperand(PtrIdx);

llvm/lib/Target/ARM/ARMISelLowering.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10624,7 +10624,6 @@ SDValue ARMTargetLowering::LowerSPONENTRY(SDValue Op, SelectionDAG &DAG) const {
1062410624
MachineFrameInfo &MFI = DAG.getMachineFunction().getFrameInfo();
1062510625

1062610626
EVT VT = getPointerTy(DAG.getDataLayout());
10627-
SDLoc DL(Op);
1062810627
int FI = MFI.CreateFixedObject(4, 0, false);
1062910628
return DAG.getFrameIndex(FI, VT);
1063010629
}
@@ -12453,7 +12452,6 @@ static void attachMEMCPYScratchRegs(const ARMSubtarget *Subtarget,
1245312452
MachineInstr &MI, const SDNode *Node) {
1245412453
bool isThumb1 = Subtarget->isThumb1Only();
1245512454

12456-
DebugLoc DL = MI.getDebugLoc();
1245712455
MachineFunction *MF = MI.getParent()->getParent();
1245812456
MachineRegisterInfo &MRI = MF->getRegInfo();
1245912457
MachineInstrBuilder MIB(*MF, MI);

llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11846,7 +11846,6 @@ bool ARMAsmParser::parseDirectiveArch(SMLoc L) {
1184611846
return Error(L, "Unknown arch name");
1184711847

1184811848
bool WasThumb = isThumb();
11849-
Triple T;
1185011849
MCSubtargetInfo &STI = copySTI();
1185111850
STI.setDefaultFeatures("", /*TuneCPU*/ "",
1185211851
("+" + ARM::getArchName(ID)).str());

llvm/lib/Target/AVR/AVRISelDAGToDAG.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,6 @@ void AVRDAGToDAGISel::Select(SDNode *N) {
571571

572572
bool AVRDAGToDAGISel::trySelect(SDNode *N) {
573573
unsigned Opcode = N->getOpcode();
574-
SDLoc DL(N);
575574

576575
switch (Opcode) {
577576
// Nodes we fully handle.

llvm/lib/Target/BPF/BPFMIChecking.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ void BPFMIPreEmitChecking::processAtomicInsts() {
159159

160160
LLVM_DEBUG(MI.dump());
161161
if (hasLiveDefs(MI, TRI)) {
162-
DebugLoc Empty;
163162
const DebugLoc &DL = MI.getDebugLoc();
164163
const Function &F = MF->getFunction();
165164
F.getContext().diagnose(DiagnosticInfoUnsupported{

0 commit comments

Comments
 (0)