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 target/41653] not optimal result for multiplication with constant when -Os is specified



------- 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


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