diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-03-27 12:32:31 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-03-27 12:41:16 +0100 |
commit | ad9dad93ff1237aed820bac8ec8e172e73af786d (patch) | |
tree | b357257f615853824a500bcea06f5ce438fc2f88 /llvm/utils/FileCheck/FileCheck.cpp | |
parent | 5a5a8088cc8d3f9fdca8c959dd3e48da13324aab (diff) | |
download | llvm-ad9dad93ff1237aed820bac8ec8e172e73af786d.zip llvm-ad9dad93ff1237aed820bac8ec8e172e73af786d.tar.gz llvm-ad9dad93ff1237aed820bac8ec8e172e73af786d.tar.bz2 |
[BasicAA] Bail out earlier for invalid shift amount
Currently, we'd produce an incorrect decomposition, because we
already recursively called GetLinearExpression(), so the Scale=1,
Offset=0 will not necessarily be relative to the shl itself.
Now, this doesn't actually matter for functional correctness,
because such a shift is poison anyway, so its okay to return
an incorrect decomposition. It's still unnecessarily confusing
though, and we can easily avoid this by checking the bitwidth
earlier.
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
0 files changed, 0 insertions, 0 deletions