This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/41653] not optimal result for multiplication with constant when -Os is specified
- From: "carrot at google dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Oct 2009 08:18:58 -0000
- Subject: [Bug target/41653] not optimal result for multiplication with constant when -Os is specified
- References: <bug-41653-17659@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from carrot at google dot com 2009-10-15 08:18 -------
arm_size_rtx_costs calls thumb1_rtx_costs for TARGET_THUMB1.
thumb1_rtx_costs is also called by several other functions. Looked at its
implementation briefly, it is actually tuned for speed only. Following are some
obvious example:
case UDIV:
case UMOD:
case DIV:
case MOD:
return 100;
case TRUNCATE:
return 99;
So a new function thumb1_size_rtx_costs is required to model the thumb1 size
feature, right?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41653