[PATCH] D49229: [InstCombine] Fold redundant masking operations of shifted value
Diogo N. Sampaio via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 24 04:55:05 PDT 2018
dnsampaio updated this revision to Diff 157006.
dnsampaio added a comment.
Moved to a separated function. Placed function call after knowing more about the operands.
Added ashr case, that was being wrongly treated as lshr.
Added comments, including one that argues that this function would be useless if and instructions are move before any type of shift operations.
Using m_c_Or, and passing operands as arguments.
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.157006.patch
Type: text/x-patch
Size: 5990 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180724/fc2b9244/attachment.bin>
More information about the llvm-commits
mailing list