diff options
author | Nikita Popov <npopov@redhat.com> | 2022-12-15 16:42:23 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-12-15 16:42:56 +0100 |
commit | e253382cd34b2378d60b93274e3d5b3b0645b738 (patch) | |
tree | cf793d33256358a49f1d63e0967b5c45188fc471 /llvm/lib | |
parent | 5d22d1f54836263ead1971ef8128f5128290dfa7 (diff) | |
download | llvm-e253382cd34b2378d60b93274e3d5b3b0645b738.zip llvm-e253382cd34b2378d60b93274e3d5b3b0645b738.tar.gz llvm-e253382cd34b2378d60b93274e3d5b3b0645b738.tar.bz2 |
[MRI] Print more debug infor in clearVirtRegs() (NFC)
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/MachineRegisterInfo.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineRegisterInfo.cpp b/llvm/lib/CodeGen/MachineRegisterInfo.cpp index e48f1be..e322250 100644 --- a/llvm/lib/CodeGen/MachineRegisterInfo.cpp +++ b/llvm/lib/CodeGen/MachineRegisterInfo.cpp @@ -204,7 +204,11 @@ void MachineRegisterInfo::clearVirtRegs() { if (!VRegInfo[Reg].second) continue; verifyUseList(Reg); - llvm_unreachable("Remaining virtual register operands"); + errs() << "Remaining virtual register " + << printReg(Reg, getTargetRegisterInfo()) << "...\n"; + for (MachineInstr &MI : reg_instructions(Reg)) + errs() << "...in instruction: " << MI << "\n"; + std::abort(); } #endif VRegInfo.clear(); |