[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:36 PDT 2024
================
@@ -2743,10 +2750,11 @@ multiclass VPseudoVSSHT_VV_VX_VI_RM<Operand ImmType = simm5, string Constraint =
}
}
-multiclass VPseudoVALU_VV_VX_VI<Operand ImmType = simm5, string Constraint = ""> {
+multiclass VPseudoVALU_VV_VX_VI<Operand ImmType = simm5, string Constraint = "",
+ bit Commutable = 0> {
foreach m = MxList in {
defvar mx = m.MX;
- defm "" : VPseudoBinaryV_VV<m, Constraint>,
+ defm "" : VPseudoBinaryV_VV<m, Constraint, Commutable=Commutable>,
----------------
lukel97 wrote:
Nit, I guess we could also wrap the VPsuedoBlahV_VV in isCommutable so we don't need to add the argument to the _VV classes
https://github.com/llvm/llvm-project/pull/88379
More information about the llvm-commits
mailing list