[PATCH] D49229: [InstCombine] Fold redundant masking operations of shifted value

Diogo N. Sampaio via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 30 05:07:16 PDT 2018


dnsampaio updated this revision to Diff 157946.
dnsampaio added a comment.

Added test that the inner and must be replaced by the new shift operation.
Converted the function to bool, as it does not require to create the Or operation after the replaceAll.


https://reviews.llvm.org/D49229

Files:
  lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  test/Transforms/InstCombine/FoldRedundantShiftedMasks.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49229.157946.patch
Type: text/x-patch
Size: 8215 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180730/f5c39a51/attachment.bin>


More information about the llvm-commits mailing list