summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/interpreter/main.c
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2019-10-07 20:53:00 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2019-10-07 20:53:00 +0000
commitcb6d851bb65dbba3e4fc6a82226e9b308b11f89c (patch)
treed3d9b7d2f163dc4b29e208b2a91e6107094e1611 /lldb/packages/Python/lldbsuite/test/python_api/interpreter/main.c
parentc3b394ffba583a53e5c1cc45360f18a3e5c023fd (diff)
downloadbcm5719-llvm-cb6d851bb65dbba3e4fc6a82226e9b308b11f89c.tar.gz
bcm5719-llvm-cb6d851bb65dbba3e4fc6a82226e9b308b11f89c.zip
[InstCombine][NFC] dropRedundantMaskingOfLeftShiftInput(): change how we deal with mask
Summary: Currently, we pre-check whether we need to produce a mask or not. This involves some rather magical constants. I'd like to extend this fold to also handle the situation when there's also a `trunc` before outer shift. That will require another set of magical constants. It's ugly. Instead, we can just compute the mask, and check whether mask is a pass-through (all-ones) or not. This way we don't need to have any magical numbers. This change is NFC other than the fact that we now compute the mask and then check if we need (and can!) apply it. Reviewers: spatel Reviewed By: spatel Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68470 llvm-svn: 373961
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/interpreter/main.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud