[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
Sun Jul 21 20:32:23 PDT 2019


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

Also update foldAndOfICmps to handle not equal (U)INT_MIN/MAX


Repository:
  rG LLVM Github Monorepo

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.211017.patch
Type: text/x-patch
Size: 7772 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190722/fd84421c/attachment.bin>


More information about the llvm-commits mailing list