This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, mips] Size savings for MIPS16 switch statements
- From: "Maciej W. Rozycki" <macro at codesourcery dot com>
- To: Steve Ellcey <sellcey at mips dot com>
- Cc: Richard Sandiford <rdsandiford at googlemail dot com>, <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 30 Jul 2013 19:44:27 +0100
- Subject: Re: [patch, mips] Size savings for MIPS16 switch statements
- References: <b1eb2749-d413-4f7f-9bb5-42e33787cd02 at BAMAIL02 dot ba dot imgtec dot org> <alpine dot DEB dot 1 dot 10 dot 1307300304260 dot 32382 at tp dot orcam dot me dot uk> <1375203322 dot 1690 dot 192 dot camel at ubuntu-sellcey>
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