Re: [PATCH] rs6000: Do swdiv at expand time

2016-11-07 Thread Segher Boessenkool
On Mon, Nov 07, 2016 at 08:26:01AM -0500, David Edelsohn wrote: > On Mon, Nov 7, 2016 at 4:32 AM, Segher Boessenkool > wrote: > > We transform floating point divide instructions to a faster series of > > simple instructions, "swdiv". Currently we do not do that until the > > first splitter pass,

Re: [PATCH] rs6000: Do swdiv at expand time

2016-11-07 Thread David Edelsohn
On Mon, Nov 7, 2016 at 4:32 AM, Segher Boessenkool wrote: > We transform floating point divide instructions to a faster series of > simple instructions, "swdiv". Currently we do not do that until the > first splitter pass, which is much too late for most optimisations > that can happen on those n

[PATCH] rs6000: Do swdiv at expand time

2016-11-07 Thread Segher Boessenkool
We transform floating point divide instructions to a faster series of simple instructions, "swdiv". Currently we do not do that until the first splitter pass, which is much too late for most optimisations that can happen on those new instructions, e.g. the constant loads are not CSEd inside an unr