This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
The ARM andsi3 expander has code to detect a case where, when generating Thumb1 code, we can perform an AND by a sequence of two shifts. Unfortunately, this code never triggers, as avoid_expensive_constant in optabs.c prevents the expander from ever seeing a constant. Fixed by tweaking the rtx costs. Regression tested on arm-elf{,mthumb}. Ok (possibly for 4.6)? Bernd
Attachment:
thumb-andsi.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |