[PATCH] D110170: [InstCombine] fold cast between shift and mask
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 21 10:00:15 PDT 2021
spatel updated this revision to Diff 373972.
spatel added a comment.
Patch updated:
Generalized to be a demanded-bits fold. I added tests ending in 'or' rather than just 'and'. ( https://alive2.llvm.org/ce/z/TfaHnb )
I think we already fold other cases (for example, ending with a left-shift).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110170/new/
https://reviews.llvm.org/D110170
Files:
llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
llvm/test/Transforms/InstCombine/trunc-demand.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110170.373972.patch
Type: text/x-patch
Size: 6082 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210921/714fcd71/attachment.bin>
More information about the llvm-commits
mailing list