[PATCH] D78430: [InstSimplify] fold and/or of compares with equality to min/max constant

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 22 15:15:08 PDT 2020


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

Patch updated:

1. Removed the code that would have overlapped with D78582 <https://reviews.llvm.org/D78582>.
2. Left the old 'null' specific code here, but rearranged and added a code comment about the fragmentation.

Between the 2 patches, this should get all of the known patterns.


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

https://reviews.llvm.org/D78430

Files:
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/test/Transforms/InstCombine/and-or-icmp-min-max.ll
  llvm/test/Transforms/InstSimplify/and-or-icmp-min-max.ll
  llvm/test/Transforms/InstSimplify/and-or-icmp-nullptr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78430.259402.patch
Type: text/x-patch
Size: 28613 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200422/0e6afcce/attachment.bin>


More information about the llvm-commits mailing list