Re: Speedup recognizing multi-letter constraints

2013-02-20 Thread Richard Biener
On Tue, Feb 19, 2013 at 4:10 PM, Michael Matz wrote: > Hi, > > from IRC: > "[15:45:21] ick - lookup_constraint for multi-letter constraints > is quite expensive ... strncmp is not expanded inline for some reason" > > Instead of fiddling with strncmp inlining, simply generate better code > from th

Speedup recognizing multi-letter constraints

2013-02-19 Thread Michael Matz
Hi, from IRC: "[15:45:21] ick - lookup_constraint for multi-letter constraints is quite expensive ... strncmp is not expanded inline for some reason" Instead of fiddling with strncmp inlining, simply generate better code from the start for two character constraints: switch (str[0]) { ca