[PATCH] D148420: [InstSimplify] Enhance select icmp and simplification

Peixin Qiao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 25 07:57:45 PDT 2023


peixin added a comment.

In D148420#4291703 <https://reviews.llvm.org/D148420#4291703>, @nikic wrote:

> It looks like this should be part of simplifySelectBitTest(), which covers other "select of icmp and" patterns.

It seems not, the `CondVal` in `simplifySelectWithICmpCond` is ICmp of value and zero. For cases in `simplifySelectBitTest`, the `CondVal` is ICmp of value and value.


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

https://reviews.llvm.org/D148420



More information about the llvm-commits mailing list