Re: [i386] New lea patterns for PR71321

2016-12-21 Thread Uros Bizjak
On Tue, Dec 20, 2016 at 10:29 PM, Bernd Schmidt wrote: > The problem here is that we don't have complete coverage of lea patterns for > HImode/QImode: the combiner can't recognize a (plus (ashift reg 2) reg) > pattern it builds. > > My first idea was to canonicalize ASHIFT by constant inside PLUS

[i386] New lea patterns for PR71321

2016-12-20 Thread Bernd Schmidt
The problem here is that we don't have complete coverage of lea patterns for HImode/QImode: the combiner can't recognize a (plus (ashift reg 2) reg) pattern it builds. My first idea was to canonicalize ASHIFT by constant inside PLUS to MULT. The docs say that this is done only inside a MEM con