[PATCH] D149783: [DAGCombiner] Add bswap(logic_op(bswap(x), y)) optimization

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 3 14:29:11 PDT 2023


goldstein.w.n added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:9972
+// fold (bswap (logic_op(bswap(x),y))) -> logic_op(x,bswap(y))
+// This helper function accept ISD::BSWAP and ISD::BITREVERSE in Opcode
+// parameter
----------------
There is no opcode parameter. Maybe 'bswap or bitreverse nodes'?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149783/new/

https://reviews.llvm.org/D149783



More information about the llvm-commits mailing list