Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RISCV] Use ComplexPattern to reduce the number of patterns for XVent…
…anaCondOps. XVentanaCondOps check the condition operand for zero or non-zero. We use this to optimize seteq/setne that would otherwise becomes xor/xori/addi+snez/seqz. These patterns avoid the snez/seqz. This patch adds two ComplexPatterns to match the varous cases and emit the xor/xori/addi instruction. These patterns can also be used by D144681. Reviewed By: philipp.tomsich Differential Revision: https://reviews.llvm.org/D144700
- Loading branch information
Showing
4 changed files
with
91 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters