This is the mail archive of the gcc-patches@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]

Re: [PATCH] Trivial inliner cleanups


Richard Guenther wrote:
This patch does some trivial cleanups to the inliner and related
code, namely exposing a local define to tree-inline.h and using
it in more places instead of 10; removing an unused define and
marking a local helper function inline (it's uses are such that
it will collapse to almost a NOP at most call-sites).

Bootstrapped on x86_64-unknown-linux-gnu.

Ok for mainline?

No, because ...


  	if (size < 0 || size > MOVE_MAX_PIECES * MOVE_RATIO)
! 	  *count += 10;

... that 10 isn't INSNS_PER_CALL; it's an estimate of how expensive the copy will be. It should be INSNS_PER_<something else>.


--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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