]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR rtl-optimization/22167 (Strange optimization bug when using -Os)
authorRichard Sandiford <richard@codesourcery.com>
Thu, 21 Jul 2005 06:56:24 +0000 (06:56 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 21 Jul 2005 06:56:24 +0000 (06:56 +0000)
PR rtl-optimization/22167
* gcse.c (hoist_code): Fix hoist_exprs[] check.

From-SVN: r102224

gcc/ChangeLog
gcc/gcse.c
gcc/testsuite/ChangeLog

index 0d42d43cfab9d7c7333719eecbd517f16a1f05a2..8ded4f05c372f7e63dc09d50f80e84c5bf31160e 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-21  Richard Sandiford  <richard@codesourcery.com>
+
+       PR rtl-optimization/22167
+       * gcse.c (hoist_code): Fix hoist_exprs[] check.
+
 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
 
        * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
index d06a224cb5d6fcf1a90f3541bf6e9490f34aa430..d785c7e3cae064b156cb46afa56212304b8179dd 100644 (file)
@@ -6445,7 +6445,7 @@ hoist_code (void)
          insn_inserted_p = 0;
 
          /* These tests should be the same as the tests above.  */
-         if (TEST_BIT (hoist_vbeout[bb->index], i))
+         if (TEST_BIT (hoist_exprs[bb->index], i))
            {
              /* We've found a potentially hoistable expression, now
                 we look at every block BB dominates to see if it
index 7f7f494658dff4d452e4166271ff6fcaf6c6b018..b7d49cb314eb20499ac758413748dec9227b09df 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-21  Richard Sandiford  <richard@codesourcery.com>
+
+       PR rtl-optimization/22167
+       * g++.dg/opt/pr22167.C: New test.
+
 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
 
        PR c/22308