[llvm] [RISCV] Add compress patterns for qc.extu and qc.mvltui (PR #140682)
Sam Elliott via llvm-commits
llvm-commits at lists.llvm.org
Tue May 20 23:15:19 PDT 2025
================
@@ -1489,6 +1489,8 @@ def : CompressPat<(QC_E_SW GPR:$rs2, GPRMem:$rs1, simm12:$imm12),
let Predicates = [HasVendorXqcicm, IsRV32] in {
def : CompressPat<(QC_MVEQI GPRC:$rd, GPRC:$rd, 0, GPRC:$rs1),
(QC_C_MVEQZ GPRC:$rd, GPRC:$rs1)>;
+def : CompressPat<(QC_MVLTUI GPRC:$rd, GPRC:$rd, 1, GPRC:$rs1),
+ (QC_C_MVEQZ GPRC:$rd, GPRC:$rs1)>;
----------------
lenary wrote:
one of these needs to be `isCompressOnly = true`, or the decompression might change in the future.
https://github.com/llvm/llvm-project/pull/140682
More information about the llvm-commits
mailing list