[llvm] [RISCV][TableGen] Return instruction size from isCompressibleInst (PR #225660)
Sudharsan Veeravalli via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 23 22:51:02 PDT 2026
================
@@ -2014,8 +2014,10 @@ unsigned RISCVInstrInfo::getInstSizeInBytes(const MachineInstr &MI) const {
return getInstBundleSize(MI);
if (MI.getParent() && MI.getParent()->getParent()) {
- if (isCompressibleInst(MI, STI))
- return 2;
+ unsigned Size = 0;
+ if (isCompressibleInst(MI, STI, &Size)) {
----------------
svs-quic wrote:
Done
https://github.com/llvm/llvm-project/pull/225660
More information about the llvm-commits
mailing list