This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/16967] Iterating gcse.c CPROP and PRE does not reach a fixed point


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]