[all-commits] [llvm/llvm-project] 69f144: [LLVM] BasicTTIImpl allow unknown type during lega...
Billy Zhu via All-commits
all-commits at lists.llvm.org
Fri May 3 07:30:57 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 69f1442302250a23fb981fb4d61159d50551f617
https://github.com/llvm/llvm-project/commit/69f1442302250a23fb981fb4d61159d50551f617
Author: Billy Zhu <billyzhu at modular.com>
Date: 2024-05-03 (Fri, 03 May 2024)
Changed paths:
M llvm/include/llvm/CodeGen/BasicTTIImpl.h
M llvm/test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list