This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/28134] optimize redundant memset + assignment
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 24 Dec 2011 03:11:54 +0000
- Subject: [Bug tree-optimization/28134] optimize redundant memset + assignment
- Auto-submitted: auto-generated
- References: <bug-28134-4@http.gcc.gnu.org/bugzilla/>
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>;