[PATCH] D140530: [RISCV] Add integer scalar instructions to isAssociativeAndCommutative
Kito Cheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 22 21:56:10 PST 2022
kito-cheng added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfo.cpp:1365
+
+ switch (Opc) {
+ default:
----------------
extract this switch to a new function `isAssociativeAndCommutativeIntOpc` and then use that in `RISCVInstrInfo::hasReassociableSibling`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140530/new/
https://reviews.llvm.org/D140530
More information about the llvm-commits
mailing list