[PATCH] D37427: [InstCombine] canonicalize fcmp ord/uno with constants to null constant

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 3 12:41:48 PDT 2017


spatel updated this revision to Diff 113711.
spatel added a comment.

Patch updated:
NFC, but use the m_Zero() matcher to further simplify the code and make the formulas in the code comments match.


https://reviews.llvm.org/D37427

Files:
  include/llvm/IR/Constant.h
  lib/IR/Constants.cpp
  lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  lib/Transforms/InstCombine/InstCombineCompares.cpp
  test/Transforms/InstCombine/and-fcmp.ll
  test/Transforms/InstCombine/fcmp-special.ll
  test/Transforms/InstCombine/or-fcmp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37427.113711.patch
Type: text/x-patch
Size: 7730 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170903/f5b1e7e9/attachment.bin>


More information about the llvm-commits mailing list