[patch, mips] Size savings for MIPS16 switch statements
Maciej W. Rozycki
macro@codesourcery.com
Tue Jul 30 18:47:00 GMT 2013
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
More information about the Gcc-patches
mailing list