[PATCH] D142344: [DAGCombiner] Add Transform for `(and/or (eq/ne A,Pow2),(eq/ne A,-Pow2))`->`(eq/ne (and (and A,Pow2),~(Pow2*2)), 0)`

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 23 03:25:45 PST 2023


goldstein.w.n added a comment.

Note, I think this is probably also worth turning on for aarch64: https://godbolt.org/z/8odYov4c1 hence when I put this in DAGCombiner instead of x86 only.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D142344



More information about the llvm-commits mailing list