[PATCH] D49229: [InstCombine] Fold redundant masking operations of shifted value
Diogo N. Sampaio via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 13 01:11:36 PDT 2018
dnsampaio updated this revision to Diff 155329.
dnsampaio marked 3 inline comments as done.
dnsampaio added a comment.
Constrain to allow the transformation to happen only when the masked value has only 2 users (an AND and a SHIFT).
Removed value tracking operations.
https://reviews.llvm.org/D49229
Files:
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
lib/Transforms/InstCombine/InstCombineInternal.h
test/Transforms/AggressiveInstCombine/foldRedundantShiftedMasks.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49229.155329.patch
Type: text/x-patch
Size: 7177 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180713/e59aadfe/attachment.bin>
More information about the llvm-commits
mailing list