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

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 15 00:12:35 PDT 2024


================
@@ -6224,9 +6232,9 @@ foreach vti = AllIntegerVectors in {
 //===----------------------------------------------------------------------===//
 // 11.2. Vector Widening Integer Add/Subtract
 //===----------------------------------------------------------------------===//
-defm PseudoVWADDU : VPseudoVWALU_VV_VX;
+defm PseudoVWADDU : VPseudoVWALU_VV_VX<Commutable=1>;
 defm PseudoVWSUBU : VPseudoVWALU_VV_VX;
-defm PseudoVWADD  : VPseudoVWALU_VV_VX;
+defm PseudoVWADD  : VPseudoVWALU_VV_VX<Commutable=1>;
 defm PseudoVWSUB  : VPseudoVWALU_VV_VX;
 defm PseudoVWADDU : VPseudoVWALU_WV_WX;
----------------
lukel97 wrote:

Do PseudoVWADDU and PseudoVWADD need to be marked as commutable?

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


More information about the llvm-commits mailing list