]> git.ipfire.org Git - thirdparty/gcc.git/commit
ICF: Remove unneeded check for CASE_LABEL_EXPR
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Fri, 15 May 2026 22:01:50 +0000 (15:01 -0700)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Sun, 17 May 2026 19:15:54 +0000 (12:15 -0700)
commit3cdc8d7974e9c12aa8a2e585a4e177755ff08010
tree3d4517e637b52e1aa8fd665dd0b9dcb36504b2ab
parent09cb7c0e9dcab29232da92f1cc028454eec1c4c2
ICF: Remove unneeded check for CASE_LABEL_EXPR

I noticed there was a check to see gimple_switch_label
returns a CASE_LABEL_EXPR after already using CASE_LOW/CASE_HIGH
on the same value.

This removes the check as it is always true.

Bootstrapped and tested on x86_64-linux-gnu.

gcc/ChangeLog:

* ipa-icf-gimple.cc (func_checker::compare_gimple_switch): Remove
the check on CASE_LABEL_EXPR since it is redundant.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
gcc/ipa-icf-gimple.cc