Re: match.pd handling of three-constant bitops

2018-01-02 Thread Richard Sandiford
Richard Biener writes: > On Thu, Sep 21, 2017 at 1:17 PM, Richard Sandiford > wrote: >> Richard Biener writes: >>> On Wed, Sep 20, 2017 at 2:18 PM, Richard Sandiford >>> wrote: natch.pd tries to reassociate two bit operations if both of them have constant operands. However, with the

Re: match.pd handling of three-constant bitops

2017-09-21 Thread Richard Biener
On Thu, Sep 21, 2017 at 1:17 PM, Richard Sandiford wrote: > Richard Biener writes: >> On Wed, Sep 20, 2017 at 2:18 PM, Richard Sandiford >> wrote: >>> natch.pd tries to reassociate two bit operations if both of them have >>> constant operands. However, with the polynomial integers added later,

Re: match.pd handling of three-constant bitops

2017-09-21 Thread Richard Sandiford
Richard Biener writes: > On Wed, Sep 20, 2017 at 2:18 PM, Richard Sandiford > wrote: >> natch.pd tries to reassociate two bit operations if both of them have >> constant operands. However, with the polynomial integers added later, >> there's no guarantee that a bit operation on two integers can

Re: match.pd handling of three-constant bitops

2017-09-20 Thread Richard Biener
On Wed, Sep 20, 2017 at 2:18 PM, Richard Sandiford wrote: > natch.pd tries to reassociate two bit operations if both of them have > constant operands. However, with the polynomial integers added later, > there's no guarantee that a bit operation on two integers can be folded > at compile time. T