From: segher Date: Thu, 20 May 2010 20:14:39 +0000 (+0000) Subject: 2010-05-20 Segher Boessenkool X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d9dc642434878858e7ecf8b8d4d0ef924189a80;p=thirdparty%2Fgcc.git 2010-05-20 Segher Boessenkool * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159639 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 520bbb676786..5ab1bcaaec64 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-05-20 Segher Boessenkool + + * ipa-prop.c (compute_complex_ancestor_jump_func): Bail + out if !cond. + 2010-05-20 Uros Bizjak PR target/43733 diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index d977242b5f0d..db2a47036e92 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -576,7 +576,8 @@ compute_complex_ancestor_jump_func (struct ipa_node_params *info, cond_bb = single_pred (assign_bb); cond = last_stmt (cond_bb); - if (gimple_code (cond) != GIMPLE_COND + if (!cond + || gimple_code (cond) != GIMPLE_COND || gimple_cond_code (cond) != NE_EXPR || gimple_cond_lhs (cond) != parm || !integer_zerop (gimple_cond_rhs (cond)))