[all-commits] [llvm/llvm-project] 0a34ff: [RISCV] Replace AddiPair ComplexPattern with a Pat...
Craig Topper via All-commits
all-commits at lists.llvm.org
Sun May 16 13:03:29 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0a34ff8bcb1df16fe7d643ccbe4567b2162c5024
https://github.com/llvm/llvm-project/commit/0a34ff8bcb1df16fe7d643ccbe4567b2162c5024
Author: Craig Topper <craig.topper at sifive.com>
Date: 2021-05-16 (Sun, 16 May 2021)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h
M llvm/lib/Target/RISCV/RISCVInstrInfo.td
Log Message:
-----------
[RISCV] Replace AddiPair ComplexPattern with a PatLeaf. NFC
The ComplexPattern is looking for an immediate in a certain range
that has a single use. This can be handled with a PatLeaf since
we aren't matching multiple patterns or checking any complicated
relationships between nodes.
This shrinks the isel table a little bit since tablegen no longer
has to generate patterns with commuted operands. With the PatLeaf,
tablegen can see we're matching an immediate which should always
be on the right hand side of add.
Reviewed By: benshi001
Differential Revision: https://reviews.llvm.org/D102510
More information about the All-commits
mailing list