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

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 8 12:14:42 PDT 2019


spatel created this revision.
spatel added reviewers: arsenm, efriedma, mcberg2017.
Herald added subscribers: hiraditya, wdng, mcrosier.
Herald added a project: LLVM.

This pattern showed up when I was investigating a different minnum optimization. I can add the maxnum sibling as a follow-up if this looks ok.

We should be able to perform some other combines when the constants are equal or greater-than too, but that would go in instcombine if I'm seeing it correctly.


https://reviews.llvm.org/D61691

Files:
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/test/Transforms/InstSimplify/floating-point-compare.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61691.198709.patch
Type: text/x-patch
Size: 9034 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190508/c6b887a6/attachment.bin>


More information about the llvm-commits mailing list