[riscv] Add some minimal tracing output to InsertVSETVLI

Only available with -debug.  Main purpose is simplifying an upcoming change, and providing tools for debugging problems.
This commit is contained in:
Philip Reames 2022-05-06 12:50:24 -07:00
parent 5930691ee1
commit dee9b01d83
1 changed files with 4 additions and 0 deletions

View File

@ -1015,6 +1015,8 @@ void RISCVInsertVSETVLI::computeIncomingVLVTYPE(const MachineBasicBlock &MBB) {
return;
BBInfo.Exit = TmpStatus;
LLVM_DEBUG(dbgs() << "Exit state of " << printMBBReference(MBB)
<< " changed to " << BBInfo.Exit << "\n");
// Add the successors to the work list so we can propagate the changed exit
// status.
@ -1201,6 +1203,8 @@ bool RISCVInsertVSETVLI::runOnMachineFunction(MachineFunction &MF) {
if (!ST.hasVInstructions())
return false;
LLVM_DEBUG(dbgs() << "Entering InsertVSETVLI for " << MF.getName() << "\n");
TII = ST.getInstrInfo();
MRI = &MF.getRegInfo();