Re: [RFC][PR70841] Reassoc fails to handle FP division

2016-05-09 Thread Richard Biener
On Thu, May 5, 2016 at 5:33 AM, kugan wrote: > Hi, > > I tried to handle reassoc fails to handle FP division. I think the best way > to do this is to do like what is done for MINUS_EXPR. I.e, convert the > RDIV_EXPR to MULT_EXPR by (1/x) early and later in

[RFC][PR70841] Reassoc fails to handle FP division

2016-05-04 Thread kugan
Hi, I tried to handle reassoc fails to handle FP division. I think the best way to do this is to do like what is done for MINUS_EXPR. I.e, convert the RDIV_EXPR to MULT_EXPR by (1/x) early and later in opt_rdiv_with_multiply, optimize it. Here is a patch that passes bootstrap and regression