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

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 14 19:59:26 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>;
----------------
lukel97 wrote:

Would it be easier to just wrap the pseudos that are commutable in `let isCommutable=1` rather than threading it through the classes?

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


More information about the llvm-commits mailing list