tree-if-conv.c (is_false_predicate): For NULL_TREE return false rather than true.

* tree-if-conv.c (is_false_predicate): For NULL_TREE return false
	rather than true.

From-SVN: r235272
This commit is contained in:
Marek Polacek 2016-04-20 12:37:38 +00:00 committed by Marek Polacek
parent d7aa24e4bc
commit dd39022b9e
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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. */