diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2015-08-22 00:19:25 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2015-08-22 00:19:25 +0000 |
commit | aba29d6ab1712ec728c5542b6542ad85bf24f58e (patch) | |
tree | 4b0d0e6275cfdfeb8eac7c28a89aee99580a7337 /llvm/lib/Target/AMDGPU | |
parent | 6adf07a92e9dd7e8b625a0b8aa1df29907d8cd6d (diff) | |
download | bcm5719-llvm-aba29d6ab1712ec728c5542b6542ad85bf24f58e.tar.gz bcm5719-llvm-aba29d6ab1712ec728c5542b6542ad85bf24f58e.zip |
AMDGPU: Improve debug printing in SIFixSGPRLiveRanges
llvm-svn: 245768
Diffstat (limited to 'llvm/lib/Target/AMDGPU')
-rw-r--r-- | llvm/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp b/llvm/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp index 3dda827b671..898646d429f 100644 --- a/llvm/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp +++ b/llvm/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp @@ -181,16 +181,25 @@ bool SIFixSGPRLiveRanges::runOnMachineFunction(MachineFunction &MF) { bool LiveInToA = LIS->isLiveInToMBB(*LR, SuccA); bool LiveInToB = LIS->isLiveInToMBB(*LR, SuccB); - if ((!LiveInToA && !LiveInToB) || - (LiveInToA && LiveInToB)) + if (!LiveInToA && !LiveInToB) { + DEBUG(dbgs() << PrintReg(Reg, TRI, 0) + << " is live into neither successor\n"); continue; + } + + if (LiveInToA && LiveInToB) { + DEBUG(dbgs() << PrintReg(Reg, TRI, 0) + << " is live into both successors\n"); + continue; + } // This interval is live in to one successor, but not the other, so // we need to update its range so it is live in to both. - DEBUG(dbgs() << "Possible SGPR conflict detected " << " in " << *LR << - " BB#" << SuccA->getNumber() << ", BB#" << - SuccB->getNumber() << - " with NCD = " << NCD->getNumber() << '\n'); + DEBUG(dbgs() << "Possible SGPR conflict detected for " + << PrintReg(Reg, TRI, 0) << " in " << *LR + << " BB#" << SuccA->getNumber() << ", BB#" + << SuccB->getNumber() + << " with NCD = BB#" << NCD->getNumber() << '\n'); assert(TargetRegisterInfo::isVirtualRegister(Reg) && "Not expecting to extend live range of physreg"); |