diff options
author | Marek Polacek <polacek@redhat.com> | 2016-04-20 12:37:38 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2016-04-20 12:37:38 +0000 |
commit | dd39022b9e5f1272c7451fc0feadc39c7c858c17 (patch) | |
tree | be1e0d40bda3af7254f9cd50166ce5f291e56449 | |
parent | d7aa24e4bc0e4a2aef9af3d020c2ba98e57be399 (diff) | |
download | gcc-dd39022b9e5f1272c7451fc0feadc39c7c858c17.zip gcc-dd39022b9e5f1272c7451fc0feadc39c7c858c17.tar.gz gcc-dd39022b9e5f1272c7451fc0feadc39c7c858c17.tar.bz2 |
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
-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. */ |