[PATCH] D109194: [InstCombine] Canonicalize masked merge; optimize (a & b) | (~a & c)

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 29 09:55:26 PDT 2021


MatzeB added a comment.

In D109194#3030775 <https://reviews.llvm.org/D109194#3030775>, @RKSimon wrote:

> What about canonicalizing to (a & b) | (~a & c)?

That would also work well. But it will require a `freeze` just the same as we go from one use of `a` to two.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109194



More information about the llvm-commits mailing list