Skip to content

Commit bd0f571

Browse files
committed
fixup! [RISCV] Specify FilterClassField to filter out unneeded pseudos
1 parent 588c0c2 commit bd0f571

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -527,17 +527,13 @@ class RISCVVPseudo {
527527
Instruction BaseInstr = !cast<Instruction>(PseudoToVInst<NAME>.VInst);
528528
// SEW = 0 is used to denote that the Pseudo is not SEW specific (or unknown).
529529
bits<8> SEW = 0;
530-
bit IsNeeded = !cond(
531-
!ne(!find(NAME, "PseudoVMCLR"), -1): 0,
532-
!ne(!find(NAME, "PseudoVMSET"), -1): 0,
533-
true: 1
534-
);
530+
bit NeedBeInPseudoTable = 1;
535531
}
536532

537533
// The actual table.
538534
def RISCVVPseudosTable : GenericTable {
539535
let FilterClass = "RISCVVPseudo";
540-
let FilterClassField = "IsNeeded";
536+
let FilterClassField = "NeedBeInPseudoTable";
541537
let CppTypeName = "PseudoInfo";
542538
let Fields = [ "Pseudo", "BaseInstr" ];
543539
let PrimaryKey = [ "Pseudo" ];
@@ -1004,6 +1000,8 @@ class VPseudoNullaryPseudoM<string BaseInst> :
10041000
// BaseInstr is not used in RISCVExpandPseudoInsts pass.
10051001
// Just fill a corresponding real v-inst to pass tablegen check.
10061002
let BaseInstr = !cast<Instruction>(BaseInst);
1003+
// We exclude them from RISCVVPseudoTable.
1004+
let NeedBeInPseudoTable = 0;
10071005
}
10081006

10091007
class VPseudoUnaryNoMask<DAGOperand RetClass,

0 commit comments

Comments
 (0)