[Bug tree-optimization/41460] value-numbering does not handle type-punning in a user-friendly way

2017-10-10 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41460

Andrew Pinski  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #2 from Andrew Pinski  ---
Fixed since at least GCC 7.

With -fno-tree-ccp (since ccp changes the MEM to use VCE):
ealias:
  a = 1.0e+0;
  _2 = MEM[(int *)];
  b = _2;
  a ={v} {CLOBBER};


fre1:
   [0.00%]:
  a = 1.0e+0;
  b = 1065353216;
  a ={v} {CLOBBER};

[Bug tree-optimization/41460] value-numbering does not handle type-punning in a user-friendly way

2010-10-01 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41460

Andrew Pinski pinskia at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2010.10.01 18:41:12
 Ever Confirmed|0   |1

--- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org 2010-10-01 
18:41:12 UTC ---
Confirmed.