Skip to content

Commit 2e17d9c

Browse files
author
Stephan Herhut
committed
[ARM] Add uses for locals introduced for debug messages. NFC.
This adds uses for locals introduced for new debug messages for the load store optimizer. Those locals are only used on debug statements and otherwise create unused variable warnings. Differential Revision: https://reviews.llvm.org/D94398
1 parent 8112a25 commit 2e17d9c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,6 +1511,7 @@ bool ARMLoadStoreOpt::MergeBaseUpdateLoadStore(MachineInstr *MI) {
15111511
.addReg(MO.getReg(), (isLd ? getDefRegState(true)
15121512
: getKillRegState(MO.isKill())))
15131513
.cloneMemRefs(*MI);
1514+
(void)MIB;
15141515
LLVM_DEBUG(dbgs() << " Added new instruction: " << *MIB);
15151516
} else if (isLd) {
15161517
if (isAM2) {
@@ -1524,6 +1525,7 @@ bool ARMLoadStoreOpt::MergeBaseUpdateLoadStore(MachineInstr *MI) {
15241525
.addImm(Pred)
15251526
.addReg(PredReg)
15261527
.cloneMemRefs(*MI);
1528+
(void)MIB;
15271529
LLVM_DEBUG(dbgs() << " Added new instruction: " << *MIB);
15281530
} else {
15291531
int Imm = ARM_AM::getAM2Opc(AddSub, Bytes, ARM_AM::no_shift);
@@ -1535,6 +1537,7 @@ bool ARMLoadStoreOpt::MergeBaseUpdateLoadStore(MachineInstr *MI) {
15351537
.addImm(Imm)
15361538
.add(predOps(Pred, PredReg))
15371539
.cloneMemRefs(*MI);
1540+
(void)MIB;
15381541
LLVM_DEBUG(dbgs() << " Added new instruction: " << *MIB);
15391542
}
15401543
} else {
@@ -1546,6 +1549,7 @@ bool ARMLoadStoreOpt::MergeBaseUpdateLoadStore(MachineInstr *MI) {
15461549
.addImm(Offset)
15471550
.add(predOps(Pred, PredReg))
15481551
.cloneMemRefs(*MI);
1552+
(void)MIB;
15491553
LLVM_DEBUG(dbgs() << " Added new instruction: " << *MIB);
15501554
}
15511555
} else {
@@ -1563,6 +1567,7 @@ bool ARMLoadStoreOpt::MergeBaseUpdateLoadStore(MachineInstr *MI) {
15631567
.addImm(Imm)
15641568
.add(predOps(Pred, PredReg))
15651569
.cloneMemRefs(*MI);
1570+
(void)MIB;
15661571
LLVM_DEBUG(dbgs() << " Added new instruction: " << *MIB);
15671572
} else {
15681573
// t2STR_PRE, t2STR_POST
@@ -1572,6 +1577,7 @@ bool ARMLoadStoreOpt::MergeBaseUpdateLoadStore(MachineInstr *MI) {
15721577
.addImm(Offset)
15731578
.add(predOps(Pred, PredReg))
15741579
.cloneMemRefs(*MI);
1580+
(void)MIB;
15751581
LLVM_DEBUG(dbgs() << " Added new instruction: " << *MIB);
15761582
}
15771583
}

0 commit comments

Comments
 (0)