Open
Description
The codegen of switch statements have different strategies that can affect performance and code size e.g., jump-table, split jump-table, binary-tree etc. Currently there are hard coded thresholds which may not be suitable for all the cases in a large codebase.
Based on the discussion in #98391 using profile-information to make such decisions can help with better codegen.