diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-if-conv.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 368feb9..1e8a33b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-04-20 Marek Polacek <polacek@redhat.com> + + * tree-if-conv.c (is_false_predicate): For NULL_TREE return false + rather than true. + 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com> * config/i386/sse.md (vec_unpacks_lo_hi): Always diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c index a9fbab9..72e808e 100644 --- a/gcc/tree-if-conv.c +++ b/gcc/tree-if-conv.c @@ -267,9 +267,9 @@ ifc_temp_var (tree type, tree expr, gimple_stmt_iterator *gsi) static inline bool is_false_predicate (tree cond) { - return (cond == NULL_TREE - || cond == boolean_false_node - || integer_zerop (cond)); + return (cond != NULL_TREE + && (cond == boolean_false_node + || integer_zerop (cond))); } /* Return true when COND is a true predicate. */ |