[PATCH] D156250: [RISCV] Handle seteq/setne conditions for CZERO_NEZ/CZERO_EQZ during isel.
Wang Pengcheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 26 09:37:35 PDT 2023
wangpc added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoXVentana.td:44
+def : Pat<(XLenVT (riscv_czero_nez GPR:$rs1, (riscv_seteq (XLenVT GPR:$rc)))),
+ (VT_MASKCN GPR:$rs1, GPR:$rc)>;
} // Predicates = [IsRV64, HasVendorXVentanaCondOps]
----------------
Should be `VT_MASKC`?
================
Comment at: llvm/test/CodeGen/RISCV/condops.ll:1090
+; RV64XVENTANACONDOPS-NEXT: vt.maskcn a1, a3, a0
+; RV64XVENTANACONDOPS-NEXT: vt.maskcn a0, a2, a0
; RV64XVENTANACONDOPS-NEXT: or a0, a0, a1
----------------
This change is strange.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156250/new/
https://reviews.llvm.org/D156250
More information about the llvm-commits
mailing list