This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/47255] Missed optimization with loops, inline functions, and __attribute__((const))
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 11 Jan 2011 12:38:16 +0000
- Subject: [Bug c/47255] Missed optimization with loops, inline functions, and __attribute__((const))
- Auto-submitted: auto-generated
- References: <bug-47255-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47255
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-11 12:38:09 UTC ---
There is a duplicate somewhere for this bug. Inlining happens before any
CSE is done which is what you see. If you remove the side-effect the
multiplications will be CSEd instead after inlining.