Revert a hunk from r261322 (PR lto/88876).
authorMartin Liska <mliska@suse.cz>
Tue, 12 Feb 2019 13:46:41 +0000 (14:46 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 12 Feb 2019 13:46:41 +0000 (13:46 +0000)
2019-02-12  Martin Liska  <mliska@suse.cz>

PR lto/88876
* ipa-pure-const.c (propagate_pure_const): Revert hunk as
we need default values of funct_state for a function that
is not optimized.

From-SVN: r268795

gcc/ChangeLog
gcc/ipa-pure-const.c

index c962c69..4cf4f01 100644 (file)
@@ -1,3 +1,10 @@
+2019-02-12  Martin Liska  <mliska@suse.cz>
+
+       PR lto/88876
+       * ipa-pure-const.c (propagate_pure_const): Revert hunk as
+       we need default values of funct_state for a function that
+       is not optimized.
+
 2019-02-12  Eric Botcazou  <ebotcazou@adacore.com>
 
        * asan.c (asan_expand_mark_ifn): Take into account the alignment of
index a8a3956..3b3f2d8 100644 (file)
@@ -1498,7 +1498,8 @@ propagate_pure_const (void)
                }
              if (avail > AVAIL_INTERPOSABLE)
                {
-                 funct_state y_l = funct_state_summaries->get (y);
+                 funct_state y_l = funct_state_summaries->get_create (y);
+
                  if (dump_file && (dump_flags & TDF_DETAILS))
                    {
                      fprintf (dump_file,