ICF: Remove redundant check for CASE_LABEL_EXPR.
Removes a redundant check in the compiler's identical code folding pass, simplifying the code.
The identical code folding (ICF) pass had a redundant check for CASE_LABEL_EXPR after already using CASE_LOW/CASE_HIGH on the same value. This commit removes that check, simplifying the code.
In Details
In ipa-icf-gimple.cc, func_checker::compare_gimple_switch redundantly checked if gimple_switch_label returns a CASE_LABEL_EXPR, even after using CASE_LOW/CASE_HIGH on the same value. This commit removes that redundant check.
For Context
The identical code folding (ICF) pass identifies and merges identical functions in a program to reduce its size. Switch statements direct program execution to different code blocks based on a value. This commit simplifies the ICF pass by removing a redundant check related to switch statement labels.