[PATCH] D78582: [InstCombine] substitute equivalent constant to reduce logic-of-icmps

Juneyoung Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 21 21:05:10 PDT 2020


aqjune added a comment.

I like this approach too because it is simpler.
Is it possible to apply this approach to InstSimplify as well? For example, when (x == c && x < y) is given, we can recursively call simplify icmp of (ult, c, y) and return its result.


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

https://reviews.llvm.org/D78582





More information about the llvm-commits mailing list