aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-12-15 16:42:23 +0100
committerNikita Popov <npopov@redhat.com>2022-12-15 16:42:56 +0100
commite253382cd34b2378d60b93274e3d5b3b0645b738 (patch)
treecf793d33256358a49f1d63e0967b5c45188fc471 /llvm/lib/CodeGen
parent5d22d1f54836263ead1971ef8128f5128290dfa7 (diff)
downloadllvm-e253382cd34b2378d60b93274e3d5b3b0645b738.zip
llvm-e253382cd34b2378d60b93274e3d5b3b0645b738.tar.gz
llvm-e253382cd34b2378d60b93274e3d5b3b0645b738.tar.bz2
[MRI] Print more debug infor in clearVirtRegs() (NFC)
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/MachineRegisterInfo.cpp6
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();