[PATCH] D81151: [InstCombine] Simplify compare of Phi with constant inputs against a constant

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 4 23:06:24 PDT 2020


mkazantsev updated this revision to Diff 268670.
mkazantsev added a comment.

Addressed comments:

- Removed single use requirement;
- Added more tests;
- Added support for vectors.


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

https://reviews.llvm.org/D81151

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
  llvm/test/Transforms/InstCombine/icmp-constant-phi.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81151.268670.patch
Type: text/x-patch
Size: 7480 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200605/5b965249/attachment.bin>


More information about the llvm-commits mailing list