diff options
author | Sanjay Patel <spatel@rotateright.com> | 2017-05-16 21:51:04 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2017-05-16 21:51:04 +0000 |
commit | 877364ff99ba0aba504e1a2a518ac1efe9523505 (patch) | |
tree | 4156cae8ac3ac72f71dc77e3d8370359efe835ea /lldb/packages/Python/lldbsuite/support/optional_with.py | |
parent | cc19560253cfba353d118476e344252a1aeb8f7c (diff) | |
download | bcm5719-llvm-877364ff99ba0aba504e1a2a518ac1efe9523505.tar.gz bcm5719-llvm-877364ff99ba0aba504e1a2a518ac1efe9523505.zip |
[InstSimplify] add folds for constant mask of value shifted by constant
We would eventually catch these via demanded bits and computing known bits in InstCombine,
but I think it's better to handle the simple cases as soon as possible as a matter of efficiency.
This fold allows further simplifications based on distributed ops transforms. eg:
%a = lshr i8 %x, 7
%b = or i8 %a, 2
%c = and i8 %b, 1
InstSimplify can directly fold this now:
%a = lshr i8 %x, 7
Differential Revision: https://reviews.llvm.org/D33221
llvm-svn: 303213
Diffstat (limited to 'lldb/packages/Python/lldbsuite/support/optional_with.py')
0 files changed, 0 insertions, 0 deletions