Re: Optimising for size

2008-07-13 Thread Joe Buck
On Mon, Jul 14, 2008 at 10:04:08AM +1000, [EMAIL PROTECTED] wrote: > I have a piece of C code. The code, compiled to an ARM THUMB target using > gcc 4.0.2, with -Os results in 230 instructions. The exact same code, > using the exact same switches compiles to 437 instructions with gcc 4.3.1. > Consi

Optimising for size

2008-07-13 Thread zoltan
Just a tentative question about a problem: I have a piece of C code. The code, compiled to an ARM THUMB target using gcc 4.0.2, with -Os results in 230 instructions. The exact same code, using the exact same switches compiles to 437 instructions with gcc 4.3.1. Considering that the compiler optimi

Re: Byte permutation optimization

2008-07-13 Thread Daniel Berlin
On Sun, Jul 13, 2008 at 6:29 AM, Andi Kleen <[EMAIL PROTECTED]> wrote: > Nils Pipenbrinck <[EMAIL PROTECTED]> writes: > >> Since the codebase is huge I have the feeling that I have overlooked >> something. Does some kind of infrastructure to detect patterns within >> a SSA tree already exists somew

Re: Byte permutation optimization

2008-07-13 Thread Andi Kleen
Nils Pipenbrinck <[EMAIL PROTECTED]> writes: > Since the codebase is huge I have the feeling that I have overlooked > something. Does some kind of infrastructure to detect patterns within > a SSA tree already exists somewhere else? FWIW some time ago I wanted to do some other arithmetic optimizat