diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp --- a/llvm/lib/CodeGen/RegAllocFast.cpp +++ b/llvm/lib/CodeGen/RegAllocFast.cpp @@ -1442,7 +1442,7 @@ } DanglingDbgValues.clear(); - LLVM_DEBUG(MBB.dump()); + LLVM_DEBUG(MBB.print(dbgs())); } bool RegAllocFast::runOnMachineFunction(MachineFunction &MF) { diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp --- a/llvm/lib/CodeGen/RegAllocGreedy.cpp +++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp @@ -3245,7 +3245,7 @@ VRAI->calculateSpillWeightsAndHints(); - LLVM_DEBUG(LIS->dump()); + LLVM_DEBUG(LIS->print(dbgs())); SA.reset(new SplitAnalysis(*VRM, *LIS, *Loops)); SE.reset(new SplitEditor(*SA, *AA, *LIS, *VRM, *DomTree, *MBFI)); diff --git a/llvm/lib/Target/AArch64/AArch64PBQPRegAlloc.cpp b/llvm/lib/Target/AArch64/AArch64PBQPRegAlloc.cpp --- a/llvm/lib/Target/AArch64/AArch64PBQPRegAlloc.cpp +++ b/llvm/lib/Target/AArch64/AArch64PBQPRegAlloc.cpp @@ -328,7 +328,7 @@ LiveIntervals &LIs = G.getMetadata().LIS; TRI = MF.getSubtarget().getRegisterInfo(); - LLVM_DEBUG(MF.dump()); + LLVM_DEBUG(MF.print(dbgs())); for (const auto &MBB: MF) { Chains.clear(); // FIXME: really needed ? Could not work at MF level ?