aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCMIPeephole.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCMIPeephole.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp b/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
index ae6ddaf..605b2d2 100644
--- a/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
+++ b/llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
@@ -380,6 +380,10 @@ static void convertUnprimedAccPHIs(const PPCInstrInfo *TII,
for (auto RegMBB : PHIOps)
NewPHI.add(RegMBB.first).add(RegMBB.second);
ChangedPHIMap[PHI] = NewPHI.getInstr();
+ LLVM_DEBUG(dbgs() << "Converting PHI: ");
+ LLVM_DEBUG(PHI->dump());
+ LLVM_DEBUG(dbgs() << "To: ");
+ LLVM_DEBUG(NewPHI.getInstr()->dump());
}
}
@@ -425,6 +429,8 @@ bool PPCMIPeephole::simplifyCode() {
// If the previous instruction was marked for elimination,
// remove it now.
if (ToErase) {
+ LLVM_DEBUG(dbgs() << "Deleting instruction: ");
+ LLVM_DEBUG(ToErase->dump());
ToErase->eraseFromParent();
ToErase = nullptr;
}