[PATCH] D61691: [InstSimplify] fold fcmp (minnum, X, C1), C2

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 15 07:51:49 PDT 2019


nikic accepted this revision.
nikic added a comment.
This revision is now accepted and ready to land.

LGTM. In the future, it might be nice to generalize this as a getConstFloatRange() function (that would be [-INF, C] for minnum and [C, INF] for maxnum) and fold the comparison based on that.


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

https://reviews.llvm.org/D61691





More information about the llvm-commits mailing list