[PATCH] D139076: [InstCombine] fold icmp + select pattern by distributive laws

chenglin.bi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 2 10:05:40 PST 2022


bcl5980 added a comment.

In D139076#3966817 <https://reviews.llvm.org/D139076#3966817>, @spatel wrote:

> Nice!
>
> But we can handle any pair of matching predicates (in follow-up patches is fine)? We just need to make sure the common operand is in the right position for non-commutative predicates:
> https://alive2.llvm.org/ce/z/xgx4eh

Thanks for the suggestion. I can add them in follow-up patches.


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

https://reviews.llvm.org/D139076



More information about the llvm-commits mailing list