[llvm] [RISCV] Make more vector pseudos commutable (PR #88379)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 14 20:41:50 PDT 2024


================
@@ -6159,7 +6167,7 @@ defm PseudoVLSEG : VPseudoUSSegLoadFF;
 //===----------------------------------------------------------------------===//
 // 11.1. Vector Single-Width Integer Add and Subtract
 //===----------------------------------------------------------------------===//
-defm PseudoVADD   : VPseudoVALU_VV_VX_VI;
+defm PseudoVADD   : VPseudoVALU_VV_VX_VI<Commutable=1>;
----------------
wangpc-pp wrote:

For most RVV pseudos, only `_VV` variants can be commutable, so we can't simply wrap these `defm`s in `let isCommutable=1`.

https://github.com/llvm/llvm-project/pull/88379


More information about the llvm-commits mailing list