https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128101
Bug ID: 128101
Summary: [16/17 Regression] seq is not released
hot_cold_predict case
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Keywords: internal-improvement
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: pinskia at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
I am not sure this happens at all because phiopt_early_allow will reject
gimple_seq_singleton_p case except for MIN/MAX.
But currently we do:
```
if (!check_it)
;
else if (contains_hot_cold_predict (middle_bb))
return false;
else if (threeway_p
&& middle_bb != middle_bb_alt
&& contains_hot_cold_predict (middle_bb_alt))
return false;
}
```
Which does not release the gimple sequence: seq.
It would be better safer to release gimple sequence seq here.