Re: RFA: Avoid creating garbage CONSTs in cselib.c

2014-04-27 Thread Richard Sandiford
Steven Bosscher writes: >> It looks like ~1.5% to ~2% of all rtl created comes from wrap_constant >> in cselib.c. Not a huge amount, but it's easy to avoid. >> >> Tested on x86_64-linux-gnu. OK to install? > > Nice patch. OK after also testing this on an autoinc target. OK, installed after comp

RFA: Avoid creating garbage CONSTs in cselib.c

2014-04-27 Thread Richard Sandiford
It looks like ~1.5% to ~2% of all rtl created comes from wrap_constant in cselib.c. Not a huge amount, but it's easy to avoid. Tested on x86_64-linux-gnu. OK to install? Thanks, Richard gcc/ * cselib.c (find_slot_memmode): Delete. (cselib_hasher): Change compare_type to a stru