[PATCH] D65017: [InstCombine] Teach foldOrOfICmps to allow icmp eq MIN_INT/MAX to be part of a range comparision. Similar for foldAndOfICmps

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 12:03:57 PDT 2019


craig.topper updated this revision to Diff 211579.
craig.topper added a comment.

Clean up comments in the new code. And a few minor fixes to the comments in the existing code. Probably should rewrite them to use C instead of specific numbers, but for now I just fixed them to not be completely incorrect about what insertRangeTest does.


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

https://reviews.llvm.org/D65017

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  llvm/test/Transforms/InstCombine/and-or-icmps.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65017.211579.patch
Type: text/x-patch
Size: 8619 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190724/2b541e3d/attachment.bin>


More information about the llvm-commits mailing list