diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2018-06-10 20:10:13 +0000 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2018-06-10 20:10:13 +0000 |
commit | eb795a0661e10f53480d61d2d6068c956c1e0d0a (patch) | |
tree | 8af0876ee1f4e3f7a71be80ba24b97a3b7e0d719 /lldb/packages/Python/lldbsuite/test/python_api/symbol-context/TestSymbolContext.py | |
parent | 4cdc59ecf2c06cf893b12744bb8254281d58e640 (diff) | |
download | bcm5719-llvm-eb795a0661e10f53480d61d2d6068c956c1e0d0a.tar.gz bcm5719-llvm-eb795a0661e10f53480d61d2d6068c956c1e0d0a.zip |
[InstCombine] Fold (x >> y) << y -> x & (-1 << y)
Summary:
We already do it for matching splat constants, but not just values.
Further improvements for non-matching splat constants, as noted in
https://reviews.llvm.org/D46760#1123713 will be needed,
but i'd prefer to do that as a follow-up.
https://bugs.llvm.org/show_bug.cgi?id=37603
https://rise4fun.com/Alive/cplX
https://rise4fun.com/Alive/0HF
Reviewers: spatel, craig.topper
Reviewed By: spatel
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D47981
llvm-svn: 334372
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/symbol-context/TestSymbolContext.py')
0 files changed, 0 insertions, 0 deletions