[llvm] bbe4853 - [RISCV] Add findCommutedOpIndices support for Zvabd

via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 4 19:21:32 PST 2026


Author: Pengcheng Wang
Date: 2026-03-05T11:21:27+08:00
New Revision: bbe4853a7b026becdff040933011129549e4484a

URL: https://github.com/llvm/llvm-project/commit/bbe4853a7b026becdff040933011129549e4484a
DIFF: https://github.com/llvm/llvm-project/commit/bbe4853a7b026becdff040933011129549e4484a.diff

LOG: [RISCV] Add findCommutedOpIndices support for Zvabd



Reviewers: preames, topperc, mgudim, lukel97, mshockwave

Pull Request: https://github.com/llvm/llvm-project/pull/184602

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVInstrInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp b/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
index 6ddd058d8e2a8..e6fbd5c182ee8 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
@@ -4170,6 +4170,10 @@ bool RISCVInstrInfo::findCommutedOpIndices(const MachineInstr &MI,
   case CASE_RVV_OPCODE_WIDEN(VWMULU_VV):
   case CASE_RVV_OPCODE_WIDEN(VWMACC_VV):
   case CASE_RVV_OPCODE_WIDEN(VWMACCU_VV):
+  case CASE_RVV_OPCODE(VABD_VV):
+  case CASE_RVV_OPCODE(VABDU_VV):
+  case CASE_RVV_OPCODE_WIDEN(VWABDA_VV):
+  case CASE_RVV_OPCODE_WIDEN(VWABDAU_VV):
   case CASE_RVV_OPCODE_UNMASK(VADC_VVM):
   case CASE_RVV_OPCODE(VSADD_VV):
   case CASE_RVV_OPCODE(VSADDU_VV):


        


More information about the llvm-commits mailing list