diff options
| author | Billy Zhu <billyzhu@modular.com> | 2024-05-03 07:30:36 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-03 07:30:36 -0700 |
| commit | 69f1442302250a23fb981fb4d61159d50551f617 (patch) | |
| tree | 3e51febda88999c07e9d9de49e8b5b951a3aef89 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
| parent | 054f7c0565410f246f3e003ec18684bd526de64c (diff) | |
| download | llvm-69f1442302250a23fb981fb4d61159d50551f617.zip llvm-69f1442302250a23fb981fb4d61159d50551f617.tar.gz llvm-69f1442302250a23fb981fb4d61159d50551f617.tar.bz2 | |
[LLVM] BasicTTIImpl allow unknown type during legality checking (#89848)
Make BasicTTIImplBase's `isTypeLegal` check handle unknown types.
Current behavior is aborting.
Motivated by a use case in SimplifyCFG, where `isTypeLegal` is called on
a struct type and dies, when it could be treated as illegal and skipped.
In general it could make sense for unknown types to be allowed, and by
default just considered not legal, but the behavior can of course be
overriden.
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions
