forked from OSchip/llvm-project
[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
This commit is contained in:
parent
8112a2598c
commit
2e17d9c0ee
|
@ -1511,6 +1511,7 @@ bool ARMLoadStoreOpt::MergeBaseUpdateLoadStore(MachineInstr *MI) {
|
|||
.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 @@ bool ARMLoadStoreOpt::MergeBaseUpdateLoadStore(MachineInstr *MI) {
|
|||
.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 @@ bool ARMLoadStoreOpt::MergeBaseUpdateLoadStore(MachineInstr *MI) {
|
|||
.addImm(Imm)
|
||||
.add(predOps(Pred, PredReg))
|
||||
.cloneMemRefs(*MI);
|
||||
(void)MIB;
|
||||
LLVM_DEBUG(dbgs() << " Added new instruction: " << *MIB);
|
||||
}
|
||||
} else {
|
||||
|
@ -1546,6 +1549,7 @@ bool ARMLoadStoreOpt::MergeBaseUpdateLoadStore(MachineInstr *MI) {
|
|||
.addImm(Offset)
|
||||
.add(predOps(Pred, PredReg))
|
||||
.cloneMemRefs(*MI);
|
||||
(void)MIB;
|
||||
LLVM_DEBUG(dbgs() << " Added new instruction: " << *MIB);
|
||||
}
|
||||
} else {
|
||||
|
@ -1563,6 +1567,7 @@ bool ARMLoadStoreOpt::MergeBaseUpdateLoadStore(MachineInstr *MI) {
|
|||
.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 @@ bool ARMLoadStoreOpt::MergeBaseUpdateLoadStore(MachineInstr *MI) {
|
|||
.addImm(Offset)
|
||||
.add(predOps(Pred, PredReg))
|
||||
.cloneMemRefs(*MI);
|
||||
(void)MIB;
|
||||
LLVM_DEBUG(dbgs() << " Added new instruction: " << *MIB);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue