From 52c9b7face987062527c612e0a65f084e43c85fd Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Mon, 12 Aug 2019 08:47:34 +0000 Subject: [PATCH] Fix Ada comparison failure on SPARC * ipa-predicate.c (add_condition): Restore inverted test. From-SVN: r274277 --- gcc/ChangeLog | 4 ++++ gcc/ipa-predicate.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index eaafd22893a..d6f43094515 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-08-12 Rainer Orth + + * ipa-predicate.c (add_condition): Restore inverted test. + 2019-08-10 Jakub Jelinek * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE. diff --git a/gcc/ipa-predicate.c b/gcc/ipa-predicate.c index 775f82bce9f..8a9851a2040 100644 --- a/gcc/ipa-predicate.c +++ b/gcc/ipa-predicate.c @@ -549,7 +549,7 @@ add_condition (class ipa_fn_summary *summary, int operand_num, for (i = 0; vec_safe_iterate (summary->conds, i, &c); i++) { if (c->operand_num == operand_num - && maybe_ne (c->size, size) + && known_eq (c->size, size) && c->code == code && c->val == val && c->agg_contents == agg_contents -- 2.30.2