This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/16967] Iterating gcse.c CPROP and PRE does not reach a fixed point
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Aug 2004 16:25:51 -0000
- Subject: [Bug rtl-optimization/16967] Iterating gcse.c CPROP and PRE does not reach a fixed point
- References: <20040810151043.16967.steven@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From steven at gcc dot gnu dot org 2004-08-10 16:25 -------
Apparently we don't want to GCSE a SYMBOL_REF because we already treat
them as constants for constant propagation.
Index: gcse.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gcse.c,v
retrieving revision 1.309
diff -c -3 -p -r1.309 gcse.c
*** gcse.c 9 Aug 2004 16:58:42 -0000 1.309
--- gcse.c 10 Aug 2004 16:24:33 -0000
*************** want_to_gcse_p (rtx x)
*** 1214,1219 ****
--- 1214,1220 ----
{
case REG:
case SUBREG:
+ case SYMBOL_REF:
case CONST_INT:
case CONST_DOUBLE:
case CONST_VECTOR:
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16967