[llvm] [AArch64][SVE] Mark AES instructions commutable. (PR #142919)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 5 05:11:13 PDT 2025
================
@@ -9254,7 +9254,9 @@ class sve2_crypto_des_bin_op<bits<2> opc, string asm, ZPRRegOp zprty>
}
multiclass sve2_crypto_des_bin_op<bits<2> opc, string asm, ZPRRegOp zprty,
- SDPatternOperator op, ValueType vt> {
+ SDPatternOperator op, ValueType vt,
+ bit commutable = 0> {
+ let isCommutable = commutable in
----------------
paulwalker-arm wrote:
Can you just wrap the two instruction definitions in `let isCommutable = 1 in {}`?
https://github.com/llvm/llvm-project/pull/142919
More information about the llvm-commits
mailing list