[PATCH] D159333: [RISCV] Replace RISCVVInversePseudosTable with a SearchIndex

Wang Pengcheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 31 22:25:18 PDT 2023


wangpc added a comment.

In D159333#4633304 <https://reviews.llvm.org/D159333#4633304>, @michaelmaitland wrote:

> It looks like the InversePseudo table was only included for MCA directory. I wonder if this led to it only being a part of the llvm-mca binary, and not part of tools that do not depend on llvm-mca (such as llc). Could you check this by comparing the size of llc binary? It should have gotten larger after this change if it had not previously included the InversePseudo table.

Yes, the size will increase about 100KB for llc.
My intention is to unify the table (and make the code more consistent?). And if we can get SEW of pseudos from this table, then we don't need to specify the explict SEW imm in pseudos' operand (WIP).
For example:

  class VPseudoUSLoadNoMask<VReg RetClass,
                            int EEW> :
        Pseudo<(outs RetClass:$rd),
               (ins RetClass:$dest, GPRMem:$rs1, AVL:$vl, ixlenimm:$sew,
                    ixlenimm:$policy), []>

becomes:

  class VPseudoUSLoadNoMask<VReg RetClass,
                            int EEW> :
        Pseudo<(outs RetClass:$rd),
               (ins RetClass:$dest, GPRMem:$rs1, AVL:$vl,
                    ixlenimm:$policy), []>,

This may simplify the generated patterns I think.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159333/new/

https://reviews.llvm.org/D159333



More information about the llvm-commits mailing list