[PATCH] D149782: [DAGCombiner] Add bswap(logic_op(bswap(x), y)) regression test case; NFC
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 5 07:05:35 PDT 2023
RKSimon added inline comments.
================
Comment at: llvm/test/CodeGen/X86/combine-bswap.ll:385
+}
+
; negative test
----------------
goldstein.w.n wrote:
> goldstein.w.n wrote:
> > Can you do two things.
> >
> > 1) Add a negative test that is `(bswap (logic (bitreverse a), b))`
> > 2) Make some of the tests use `bitreverse`. You don't need to add new tests, just modify half the `bswap` ones to use `bitreverse instead.
> ping on this comment, otherwise LG.
+1 for (1) - but I'd prefer equivalent tests added to combine-bitreverse.ll instead of being added to combine-bswap.ll
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149782/new/
https://reviews.llvm.org/D149782
More information about the llvm-commits
mailing list