mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-04 09:37:20 +00:00
AMDGPU: Simplify debug printing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247345 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3a8d465ddd
commit
d62d9ca7fa
@ -1695,10 +1695,7 @@ void AMDGPUCFGStructurizer::migrateInstruction(MachineBasicBlock *SrcMBB,
|
||||
);
|
||||
SpliceEnd = SrcMBB->end();
|
||||
} else {
|
||||
DEBUG(
|
||||
dbgs() << "migrateInstruction see branch instr\n" ;
|
||||
BranchMI->dump();
|
||||
);
|
||||
DEBUG(dbgs() << "migrateInstruction see branch instr: " << *BranchMI);
|
||||
SpliceEnd = BranchMI;
|
||||
}
|
||||
DEBUG(
|
||||
@ -1711,7 +1708,7 @@ void AMDGPUCFGStructurizer::migrateInstruction(MachineBasicBlock *SrcMBB,
|
||||
|
||||
DEBUG(
|
||||
dbgs() << "migrateInstruction after splice dstSize = " << DstMBB->size()
|
||||
<< "srcSize = " << SrcMBB->size() << "\n";
|
||||
<< "srcSize = " << SrcMBB->size() << '\n';
|
||||
);
|
||||
}
|
||||
|
||||
@ -1743,7 +1740,7 @@ void AMDGPUCFGStructurizer::removeUnconditionalBranch(MachineBasicBlock *MBB) {
|
||||
// test_fc_do_while_or.c need to fix the upstream on this to remove the loop.
|
||||
while ((BranchMI = getLoopendBlockBranchInstr(MBB))
|
||||
&& isUncondBranch(BranchMI)) {
|
||||
DEBUG(dbgs() << "Removing uncond branch instr"; BranchMI->dump(););
|
||||
DEBUG(dbgs() << "Removing uncond branch instr: " << *BranchMI);
|
||||
BranchMI->eraseFromParent();
|
||||
}
|
||||
}
|
||||
@ -1759,7 +1756,7 @@ void AMDGPUCFGStructurizer::removeRedundantConditionalBranch(
|
||||
|
||||
MachineInstr *BranchMI = getNormalBlockBranchInstr(MBB);
|
||||
assert(BranchMI && isCondBranch(BranchMI));
|
||||
DEBUG(dbgs() << "Removing unneeded cond branch instr"; BranchMI->dump(););
|
||||
DEBUG(dbgs() << "Removing unneeded cond branch instr: " << *BranchMI);
|
||||
BranchMI->eraseFromParent();
|
||||
SHOWNEWBLK(MBB1, "Removing redundant successor");
|
||||
MBB->removeSuccessor(MBB1);
|
||||
|
@ -215,10 +215,8 @@ bool SIFixSGPRCopies::runOnMachineFunction(MachineFunction &MF) {
|
||||
I != E; ++I) {
|
||||
MachineInstr &MI = *I;
|
||||
if (MI.getOpcode() == AMDGPU::COPY && isVGPRToSGPRCopy(MI, TRI, MRI)) {
|
||||
DEBUG(dbgs() << "Fixing VGPR -> SGPR copy:\n");
|
||||
DEBUG(MI.print(dbgs()));
|
||||
DEBUG(dbgs() << "Fixing VGPR -> SGPR copy: " << MI);
|
||||
TII->moveToVALU(MI);
|
||||
|
||||
}
|
||||
|
||||
switch (MI.getOpcode()) {
|
||||
|
@ -283,7 +283,7 @@ bool SIShrinkInstructions::runOnMachineFunction(MachineFunction &MF) {
|
||||
}
|
||||
|
||||
// We can shrink this instruction
|
||||
DEBUG(dbgs() << "Shrinking "; MI.dump(); dbgs() << '\n';);
|
||||
DEBUG(dbgs() << "Shrinking " << MI);
|
||||
|
||||
MachineInstrBuilder Inst32 =
|
||||
BuildMI(MBB, I, MI.getDebugLoc(), TII->get(Op32));
|
||||
|
Loading…
x
Reference in New Issue
Block a user