diff options
| author | Nikita Popov <npopov@redhat.com> | 2021-12-17 10:31:50 +0100 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2021-12-17 17:05:06 +0100 |
| commit | 9fd4f80e33a4ae4567483819646650f5735286e2 (patch) | |
| tree | edf2bbe903a6f58f8237a2b39c5bab9a18e9fb52 /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h | |
| parent | d3abb04e148b6ac856b6e5a5c1b835f0507e2bb4 (diff) | |
| download | llvm-9fd4f80e33a4ae4567483819646650f5735286e2.zip llvm-9fd4f80e33a4ae4567483819646650f5735286e2.tar.gz llvm-9fd4f80e33a4ae4567483819646650f5735286e2.tar.bz2 | |
[ConstantFolding] Unify handling of load from uniform value
There are a number of places that specially handle loads from a
uniform value where all the bits are the same (zero, one, undef,
poison), because we a) don't care about the load offset in that
case and b) it bypasses casts that might not be legal generally
but do work with uniform values.
We had multiple implementations of this, with a different set of
supported values each time, as well as incomplete type checks in
some cases. In particular, this fixes the assertion reported in
https://reviews.llvm.org/D114889#3198921, as well as a similar
assertion that could be triggered via constant folding.
Differential Revision: https://reviews.llvm.org/D115924
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h')
0 files changed, 0 insertions, 0 deletions
