Re: [PATCH] rs6000: Disparage CTR and LR in movcc_internal1

2016-09-26 Thread Segher Boessenkool
On Tue, Sep 27, 2016 at 02:29:46PM +0930, Alan Modra wrote: > On Tue, Sep 27, 2016 at 12:33:59AM +, Segher Boessenkool wrote: > > * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR. > > Actually, not disparage, but ignore when choosing register > preferences. @cindex @

Re: [PATCH] rs6000: Disparage CTR and LR in movcc_internal1

2016-09-26 Thread Alan Modra
On Tue, Sep 27, 2016 at 12:33:59AM +, Segher Boessenkool wrote: > * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR. Actually, not disparage, but ignore when choosing register preferences. > (define_insn "*movcc_internal1" > - [(set (match_operand:CC 0 "nonimmedia

[PATCH] rs6000: Disparage CTR and LR in movcc_internal1

2016-09-26 Thread Segher Boessenkool
Hi! LRA likes to use CTR and LR to store CCmode values. Not such a good idea. All other similar patterns disparage using CTR and LR; do so here, too. Committing to trunk. Segher 2016-09-27 Segher Boessenkool * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.