[RISCV] Remove 'frameindex' from list for ComplexPattern. NFC

Putting a node in this list allows the node to be used as the root
of an isel pattern that would then call the ComplexPattern. The
usual case is to use the ComplexPattern as the operand of another
operator.

AddrFI is never used as a root operation. frameindex is handled
directly with custom code in RISCVISelDAGToDAG::Select. So adding
frameindex to the list here serves no purpose.
This commit is contained in:
Craig Topper 2022-04-29 17:30:39 -07:00
parent 26c82f3d1d
commit 5aa1a7b307
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ def uimm6gt32 : ImmLeaf<XLenVT, [{
// Addressing modes.
// Necessary because a frameindex can't be matched directly in a pattern.
def AddrFI : ComplexPattern<iPTR, 1, "SelectAddrFI", [frameindex], []>;
def AddrFI : ComplexPattern<iPTR, 1, "SelectAddrFI">;
def BaseAddr : ComplexPattern<iPTR, 1, "SelectBaseAddr">;
// Return the negation of an immediate value.