summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/support/optional_with.py
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-05-16 21:51:04 +0000
committerSanjay Patel <spatel@rotateright.com>2017-05-16 21:51:04 +0000
commit877364ff99ba0aba504e1a2a518ac1efe9523505 (patch)
tree4156cae8ac3ac72f71dc77e3d8370359efe835ea /lldb/packages/Python/lldbsuite/support/optional_with.py
parentcc19560253cfba353d118476e344252a1aeb8f7c (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud