diff options
author | Marcello Maggioni <hayarms@gmail.com> | 2019-04-07 06:12:44 +0000 |
---|---|---|
committer | Marcello Maggioni <hayarms@gmail.com> | 2019-04-07 06:12:44 +0000 |
commit | 30eb5758112a7f972d4ffea4ed0aa5f1c2732b40 (patch) | |
tree | e4f923b30450506d856638fc42247906e4f7388e /llvm/tools/llvm-objdump/llvm-objdump.h | |
parent | 545ed223a65513475203f81f267bf1656b8f4e04 (diff) | |
download | llvm-30eb5758112a7f972d4ffea4ed0aa5f1c2732b40.zip llvm-30eb5758112a7f972d4ffea4ed0aa5f1c2732b40.tar.gz llvm-30eb5758112a7f972d4ffea4ed0aa5f1c2732b40.tar.bz2 |
[ConstantRange] Shl considers full-set shifting to last bit position.
if we do SHL of two 16-bit ranges like [0, 30000) with [1,2) we get
"full-set" instead of what I would have expected [0, 60000) which is
still in the 16-bit unsigned range.
This patch changes the SHL algorithm to allow getting a usable range
even in this case.
Differential Revision: https://reviews.llvm.org/D57983
llvm-svn: 357854
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.h')
0 files changed, 0 insertions, 0 deletions