This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/28395] Improved division-by-constant code
- From: "vda dot linux at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jul 2006 16:22:44 -0000
- Subject: [Bug middle-end/28395] Improved division-by-constant code
- References: <bug-28395-12956@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from vda dot linux at googlemail dot com 2006-07-16 16:22 -------
Oh my.
It looks that use of -Os played a joke on me. gcc 3.4.3 -Os uses a division
instruction, even though it results in slower and _also bigger_ code.
Maybe it makes sense to enable this optimization for -Os too?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28395