[PATCH] D136432: [AMDGPU] Combine BFI instructions.
Nicolai Hähnle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 27 01:12:43 PDT 2022
nhaehnle added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp:2196-2203
+ do {
+ SDValue O0 = CurrentOr->getOperand(0);
+ SDValue O1 = CurrentOr->getOperand(1);
+ if (O1.getOpcode() != ISD::AND)
+ return false;
+
+ switch (O0.getOpcode()) {
----------------
There is still a weird asymmetry here. Do you have a reason for treating the two operands differently? If not, you should treat them the same.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136432/new/
https://reviews.llvm.org/D136432
More information about the llvm-commits
mailing list