Fix Ada comparison failure on SPARC
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 12 Aug 2019 08:47:34 +0000 (08:47 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Mon, 12 Aug 2019 08:47:34 +0000 (08:47 +0000)
* ipa-predicate.c (add_condition): Restore inverted test.

From-SVN: r274277

gcc/ChangeLog
gcc/ipa-predicate.c

index eaafd22893a093993ee08e3b7a39dd6f307b8b4f..d6f43094515f0e676bea52ece2605ef42d79cb56 100644 (file)
@@ -1,3 +1,7 @@
+2019-08-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * ipa-predicate.c (add_condition): Restore inverted test.
+
 2019-08-10  Jakub Jelinek  <jakub@redhat.com>
 
        * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
index 775f82bce9f45144b728b9d08a5883efbe9dacf9..8a9851a2040d53d166ecba548464c9c8ac43cc4c 100644 (file)
@@ -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