diff options
author | Tobias Gysi <tobias.gysi@nextsilicon.com> | 2024-01-19 11:10:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-19 11:10:57 +0100 |
commit | 9dd0eb9c9c207e7ea17912616c5cea58aa5c514d (patch) | |
tree | 851b42dd7a715d71a13afa5e413b0a2072357a1a /clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp | |
parent | 3d90e1fa94d17c3b27c89731760f28791bb30943 (diff) | |
download | llvm-9dd0eb9c9c207e7ea17912616c5cea58aa5c514d.zip llvm-9dd0eb9c9c207e7ea17912616c5cea58aa5c514d.tar.gz llvm-9dd0eb9c9c207e7ea17912616c5cea58aa5c514d.tar.bz2 |
[mlir][llvm] Drop unreachable basic block during import (#78467)
This revision updates the LLVM IR import to support unreachable basic
blocks. An unreachable block may dominate itself and a value defined
inside the block may thus be used before its definition. The import does
not support such dependencies. We thus delete the unreachable basic
blocks before the import. This is possible since MLIR does not have
basic block labels that can be reached using an indirect call and
unreachable blocks can indeed be deleted safely.
Additionally, add a small poison constant import test.
Diffstat (limited to 'clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp')
0 files changed, 0 insertions, 0 deletions