[llvm] [RISCV] Specify FilterClassField to filter out unneeded pseudos (PR #65460)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 6 09:24:39 PDT 2023


================
@@ -527,11 +527,17 @@ class RISCVVPseudo {
   Instruction BaseInstr = !cast<Instruction>(PseudoToVInst<NAME>.VInst);
   // SEW = 0 is used to denote that the Pseudo is not SEW specific (or unknown).
   bits<8> SEW = 0;
+  bit IsNeeded = !cond(
+    !ne(!find(NAME, "PseudoVMCLR"), -1): 0,
----------------
topperc wrote:

Can we set this from `VPseudoNullaryPseudoM`? Doing string matching here feels hacky.

https://github.com/llvm/llvm-project/pull/65460


More information about the llvm-commits mailing list