[PATCH] D134418: [AMDGPU] Improve ISel for v_bfi instructions.
Thomas Symalla via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 23 01:18:31 PDT 2022
tsymalla added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIInstructions.td:1909
+// ((a ^ y) & C0) ^ ((y & C1) | (z & ~C1)) <=>
+// (a & C0) | (~C0 & ((y & C1) | (z & ~C1)))
+def : AMDGPUPat <
----------------
foad wrote:
> Still not true. Counterexample: a=y=C1=0, z=C0=1.
You are correct. I need to overthink the pattern. In general, the equation is not correct when when y != z and a=y=C1.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134418/new/
https://reviews.llvm.org/D134418
More information about the llvm-commits
mailing list