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 tree-optimization/28134] optimize redundant memset + assignment


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28134

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-12-24
            Version|unknown                     |4.7.0
     Ever Confirmed|0                           |1

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-24 03:11:54 UTC ---
Confirmed:
<bb 2>:
  memset (bp_2(D), 0, 24576);

<bb 3>:
  # ivtmp.14_9 = PHI <ivtmp.14_20(3), 0(2)>
  MEM[base: bp_2(D), index: ivtmp.14_9, offset: 16B] = 0B;
  ivtmp.14_20 = ivtmp.14_9 + 24;
  if (ivtmp.14_20 != 24576)
    goto <bb 3>;
  else
    goto <bb 4>;


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