Skip to content

Commit

Permalink
[MRI] Print more debug infor in clearVirtRegs() (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Dec 15, 2022
1 parent 5d22d1f commit e253382
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion llvm/lib/CodeGen/MachineRegisterInfo.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit e253382

Please sign in to comment.