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, mips] Size savings for MIPS16 switch statements


On Tue, 30 Jul 2013, Steve Ellcey wrote:

> > -- it may be that the tests have to be disabled at -Os just like e.g. 
> > code-readable-1.c already is at -O0.
> 
> Sorry about that, not sure why I didn't notice the failures.  Rather
> then skipping the tests for -Os I was thinking it might be better to
> increase the size of the switch statements.  Here is a patch I have
> tested to fix these failures.

 That sounds even better to me -- perhaps you can take the opportunity and 
test the new threshold too?  I.e. another test case for MIPS16 and -Os 
only that makes sure the code produced is switched between the two models 
when the size of a switch statement crosses the boundary?

  Maciej


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