[Patch Preview/RFC] tree-optimization/57994: Constant folding of infinity

2013-10-24 Thread Paolo Carlini
Hi, this is just a preview, but I decided to send it out early to understand if I'm on the right track or not. As you can see in the Bug, this started as a spin-off of a library issue with complex pow, which led us to: __builtin_exp(-__builtin_huge_val()) not being folded to a constant a

Re: [Patch Preview/RFC] tree-optimization/57994: Constant folding of infinity

2013-10-25 Thread Richard Biener
On Thu, 24 Oct 2013, Paolo Carlini wrote: > Hi, > > this is just a preview, but I decided to send it out early to understand if > I'm on the right track or not. As you can see in the Bug, this started as a > spin-off of a library issue with complex pow, which led us to: > > __builtin_exp(-__