[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:00:44 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:
I don't think you need to change this.
https://github.com/llvm/llvm-project/pull/94990
More information about the llvm-commits
mailing list