This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] [PR tree-optimization/92788] Check right edge flags when suppressing jump threading



When we thread through the successor of a joiner block we make a clone
of the joiner block and redirect its outgoing edges.  Of course if
there's cases where we can't redirect an edge, then bad things will
happen.

The code already checked for EDGE_ABNORMAL to suppress threading in
that case.  But it really should have been checking EDGE_COMPLEX which
includes ABNORMAL_CALL, EH and PRESERVE.

This patch fixes that oversight and resolves the BZ.  Bootstrapped and
regression tested on x86_64.  Committed to the trunk.

jeff


Attachment: P
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]