[PATCH] D32665: [InstCombine] don't use DeMorgan's Law on integer constants

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 1 15:56:57 PDT 2017


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

Patch updated:
We added a one-use check in https://reviews.llvm.org/D32703, so keep that in the translation to the 'match' patterns.


https://reviews.llvm.org/D32665

Files:
  lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  test/Transforms/InstCombine/assume2.ll
  test/Transforms/InstCombine/demorgan.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32665.97355.patch
Type: text/x-patch
Size: 4639 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170501/495f8ad4/attachment.bin>


More information about the llvm-commits mailing list