Skip to content

Commit ab9f197

Browse files
committed
remove redundent log
1 parent 34558a7 commit ab9f197

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

llvm/lib/CodeGen/RegisterCoalescer.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,8 +1328,6 @@ bool RegisterCoalescer::reMaterializeDef(const CoalescerPair &CP,
13281328

13291329
// Skip rematerialization for physical registers used as return values within
13301330
// the same basic block to enable better coalescing.
1331-
1332-
13331331
if (DstReg.isPhysical()) {
13341332
MachineBasicBlock *MBB = CopyMI->getParent();
13351333
if (DefMI->getParent() == MBB) {
@@ -1366,7 +1364,7 @@ bool RegisterCoalescer::reMaterializeDef(const CoalescerPair &CP,
13661364
bool OnlyUsedByCopies = true;
13671365
unsigned UseCount = 0;
13681366
for (const MachineOperand &MO : MRI->use_operands(SrcReg)) {
1369-
const MachineInstr *UseMI = MO.getParent(); // 改为 const
1367+
const MachineInstr *UseMI = MO.getParent();
13701368
if (!UseMI->isCopy() && !UseMI->isSubregToReg()) {
13711369
OnlyUsedByCopies = false;
13721370
break;
@@ -1375,9 +1373,7 @@ bool RegisterCoalescer::reMaterializeDef(const CoalescerPair &CP,
13751373
}
13761374

13771375
if (OnlyUsedByCopies && UseCount > 0) {
1378-
LLVM_DEBUG(dbgs() << "\tAllow remat: constant move only used by "
1379-
<< UseCount << " copies\n");
1380-
break; // Allow rematerialization
1376+
break;
13811377
}
13821378
}
13831379

0 commit comments

Comments
 (0)