[PATCH] D94398: [ARM] Add uses for locals introduced for debug messages. NFC.
Stephan Herhut via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 11 03:32:38 PST 2021
herhut created this revision.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
herhut requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D94398
Files:
llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
Index: llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
===================================================================
--- llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
+++ llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
@@ -1511,6 +1511,7 @@
.addReg(MO.getReg(), (isLd ? getDefRegState(true)
: getKillRegState(MO.isKill())))
.cloneMemRefs(*MI);
+ (void)MIB;
LLVM_DEBUG(dbgs() << " Added new instruction: " << *MIB);
} else if (isLd) {
if (isAM2) {
@@ -1524,6 +1525,7 @@
.addImm(Pred)
.addReg(PredReg)
.cloneMemRefs(*MI);
+ (void)MIB;
LLVM_DEBUG(dbgs() << " Added new instruction: " << *MIB);
} else {
int Imm = ARM_AM::getAM2Opc(AddSub, Bytes, ARM_AM::no_shift);
@@ -1535,6 +1537,7 @@
.addImm(Imm)
.add(predOps(Pred, PredReg))
.cloneMemRefs(*MI);
+ (void)MIB;
LLVM_DEBUG(dbgs() << " Added new instruction: " << *MIB);
}
} else {
@@ -1546,6 +1549,7 @@
.addImm(Offset)
.add(predOps(Pred, PredReg))
.cloneMemRefs(*MI);
+ (void)MIB;
LLVM_DEBUG(dbgs() << " Added new instruction: " << *MIB);
}
} else {
@@ -1563,6 +1567,7 @@
.addImm(Imm)
.add(predOps(Pred, PredReg))
.cloneMemRefs(*MI);
+ (void)MIB;
LLVM_DEBUG(dbgs() << " Added new instruction: " << *MIB);
} else {
// t2STR_PRE, t2STR_POST
@@ -1572,6 +1577,7 @@
.addImm(Offset)
.add(predOps(Pred, PredReg))
.cloneMemRefs(*MI);
+ (void)MIB;
LLVM_DEBUG(dbgs() << " Added new instruction: " << *MIB);
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94398.315744.patch
Type: text/x-patch
Size: 1862 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210111/aa655fc8/attachment.bin>
More information about the llvm-commits
mailing list