cleanup_control_expr_graph uses fold to fold COND_EXPR_COND. It's better to do it at construction time. I got rid of fold from find_taken_edge once. Then Diego re-introduced fold in cleanup_control_expr_graph as a fix for PR 23476.
-- Summary: cleanup_control_expr_graph uses fold to fold COND_EXPR_COND Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kazu at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24026