diff options
author | Justin Lebar <jlebar@google.com> | 2018-06-14 17:13:48 +0000 |
---|---|---|
committer | Justin Lebar <jlebar@google.com> | 2018-06-14 17:13:48 +0000 |
commit | fe455464eb1702653e8b835a79f03c48007c5a19 (patch) | |
tree | 9a3070fe47df93af64254be7df4dd64b3d814e69 /lldb/packages/Python/lldbsuite/test/functionalities/command_source/TestCommandSource.py | |
parent | b326904dba986560d5d27da8bd67b963a14079b3 (diff) | |
download | bcm5719-llvm-fe455464eb1702653e8b835a79f03c48007c5a19.tar.gz bcm5719-llvm-fe455464eb1702653e8b835a79f03c48007c5a19.zip |
[SCEV] Simplify zext/trunc idiom that appears when handling bitmasks.
Summary:
Specifically, we transform
zext(2^K * (trunc X to iN)) to iM ->
2^K * (zext(trunc X to i{N-K}) to iM)<nuw>
This is helpful because pulling the 2^K out of the zext allows further
optimizations.
Reviewers: sanjoy
Subscribers: hiraditya, llvm-commits, timshen
Differential Revision: https://reviews.llvm.org/D48158
llvm-svn: 334737
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/command_source/TestCommandSource.py')
0 files changed, 0 insertions, 0 deletions