Skip to content

Commit a66900b

Browse files
committed
[RISCV] Pretty print AVL register in VSETVLIInfo::dump. NFC
Currently the AVLReg is printed raw like {AVLReg=2147483668, ...}, this changes it to {AVLReg=%20, ...} which should be easier to read.
1 parent f03cb00 commit a66900b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ class VSETVLIInfo {
833833
if (isUnknown())
834834
OS << "unknown";
835835
if (hasAVLReg())
836-
OS << "AVLReg=" << (unsigned)getAVLReg();
836+
OS << "AVLReg=" << llvm::printReg(getAVLReg());
837837
if (hasAVLImm())
838838
OS << "AVLImm=" << (unsigned)AVLImm;
839839
if (hasAVLVLMAX())

0 commit comments

Comments
 (0)