Re: [PATCH][AArch64][2/5] Improve immediate generation

2015-09-18 Thread James Greenhalgh
On Wed, Sep 02, 2015 at 01:35:19PM +0100, Wilco Dijkstra wrote: > aarch64_internal_mov_immediate uses loops iterating over all legal bitmask > immediates to find 2-instruction immediate combinations. One loop is > quadratic and despite being extremely expensive very rarely finds a matching > immedi

[PATCH][AArch64][2/5] Improve immediate generation

2015-09-02 Thread Wilco Dijkstra
aarch64_internal_mov_immediate uses loops iterating over all legal bitmask immediates to find 2-instruction immediate combinations. One loop is quadratic and despite being extremely expensive very rarely finds a matching immediate (43 matches in all of SPEC2006 but none are emitted in final code