[PATCH] D75961: [InstCombine] reduce demand-limited bool math to logic

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 11 07:24:43 PDT 2020


spatel updated this revision to Diff 249612.
spatel marked an inline comment as done.
spatel added a comment.

Patch updated:

1. Change the demanded mask predicate to be more liberal; we only need to know that the low-bit is not demanded.
2. Update tests to more accurately check the mask constraint (adjust 'and' mask and shift amounts).


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

https://reviews.llvm.org/D75961

Files:
  llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  llvm/test/Transforms/InstCombine/add.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75961.249612.patch
Type: text/x-patch
Size: 4812 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200311/3ce18767/attachment.bin>


More information about the llvm-commits mailing list