[PATCH] D158976: [RISCV] Add isCommutable for pseudos without merge operand

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 28 17:49:39 PDT 2023


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td:2264
     defvar mx = m.MX;
-    let VLMul = m.value in {
+    let VLMul = m.value, isCommutable = 1 in {
       def "_MM_" # mx : VPseudoBinaryNoMask<VR, VR, VR, "">,
----------------
Does this make `PseudoVMANDN` and `PseudoVMORN` commutable? That would be incorrect


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D158976/new/

https://reviews.llvm.org/D158976



More information about the llvm-commits mailing list