[llvm] a66900b - [RISCV] Pretty print AVL register in VSETVLIInfo::dump. NFC
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 24 04:01:25 PDT 2024
Author: Luke Lau
Date: 2024-06-24T19:00:59+08:00
New Revision: a66900be7507eb0c68a6eff1e945e1823507d3e0
URL: https://github.com/llvm/llvm-project/commit/a66900be7507eb0c68a6eff1e945e1823507d3e0
DIFF: https://github.com/llvm/llvm-project/commit/a66900be7507eb0c68a6eff1e945e1823507d3e0.diff
LOG: [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.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
index e8541dc2b5c86..101f188374e0c 100644
--- a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
+++ b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
@@ -833,7 +833,7 @@ class VSETVLIInfo {
if (isUnknown())
OS << "unknown";
if (hasAVLReg())
- OS << "AVLReg=" << (unsigned)getAVLReg();
+ OS << "AVLReg=" << llvm::printReg(getAVLReg());
if (hasAVLImm())
OS << "AVLImm=" << (unsigned)AVLImm;
if (hasAVLVLMAX())
More information about the llvm-commits
mailing list