diff options
author | Paul Kirth <paulkirth@google.com> | 2024-10-30 16:56:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-30 16:56:30 -0700 |
commit | b01e2a8b5620466c3b80cc6f049efbc90b9d103a (patch) | |
tree | cb3c3884ae10ea0bbe6f7754545d9f031c9f58a6 /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h | |
parent | 51628faa0122d61b7725ec869fa5c0be1d739edd (diff) | |
download | llvm-b01e2a8b5620466c3b80cc6f049efbc90b9d103a.zip llvm-b01e2a8b5620466c3b80cc6f049efbc90b9d103a.tar.gz llvm-b01e2a8b5620466c3b80cc6f049efbc90b9d103a.tar.bz2 |
[llvm] Allow always dropping all llvm.type.test sequences
Currently, the `DropTypeTests` parameter only fully works with phi nodes
and llvm.assume instructions. However, we'd like CFI to work in
conjunction with FatLTO, in so far as the bitcode section should be able
to contain the CFI instrumentation, while any incompatible bits are
dropped when compiling the object code.
To do that, we need to drop the llvm.type.test instructions everywhere,
and not just their uses in phi nodes. This patch updates the
LowerTypeTest pass so that uses are removed, and replaced with `true` in
all cases, and not just in phi nodes.
Addressing this will allow us to fix #112053 by modifying the FatLTO
pipeline.
Reviewers: pcc, nikic
Reviewed By: pcc
Pull Request: https://github.com/llvm/llvm-project/pull/112787
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h')
0 files changed, 0 insertions, 0 deletions