[llvm] [AMDGPU] SIFoldOperands: Print instructions/operands in debug output (NFC) (PR #207945)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 7 04:02:51 PDT 2026
================
@@ -631,7 +631,7 @@ bool SIFoldOperandsImpl::updateOperand(FoldCandidate &Fold) const {
MachineBasicBlock *MBB = MI->getParent();
auto Liveness = MBB->computeRegisterLiveness(TRI, AMDGPU::VCC, MI, 16);
if (Liveness != MachineBasicBlock::LQR_Dead) {
- LLVM_DEBUG(dbgs() << "Not shrinking " << MI << " due to vcc liveness\n");
+ LLVM_DEBUG(dbgs() << "Not shrinking " << *MI << " due to vcc liveness\n");
----------------
arsenm wrote:
```suggestion
LLVM_DEBUG(dbgs() << "Not shrinking due to live vcc: " << *MI);
```
Avoid line break between the inst and the message
https://github.com/llvm/llvm-project/pull/207945
More information about the llvm-commits
mailing list