[llvm] [SimplifyCFG] Replace unreachable switch lookup table holes with poison (PR #94990)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 12 17:02:31 PDT 2024
================
@@ -6266,7 +6266,8 @@ SwitchLookupTable::SwitchLookupTable(
assert(Values.size() && "Can't build lookup table without values!");
assert(TableSize >= Values.size() && "Can't fit values in table!");
- // If all values in the table are equal, this is that value.
+ // If all values in the table are equal, ignoring any values that are poison,
+ // this is that value.
----------------
DianQK wrote:
This is an internal scenario, so for me, adding a comment in the corresponding code is sufficient.
https://github.com/llvm/llvm-project/pull/94990
More information about the llvm-commits
mailing list