[llvm] [SimplifyCFG] Replace unreachable switch lookup table holes with poison (PR #94990)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 17 03:49:00 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.
----------------
DaMatrix wrote:
Changed.
https://github.com/llvm/llvm-project/pull/94990
More information about the llvm-commits
mailing list