Displaying 2 results from an estimated 2 matches for "a17d9892".
2013 Aug 08
0
[LLVMdev] Convert fdiv - X/Y -> X*1/Y
Seems incorrect but I forget the IEEE fp rules.
What if both x and y are infinity?
in that case x/y = NAN but you transformation will yield 0 as the result.
On 08/08/2013 09:25 AM, Chad Rosier wrote:
> I would like to transform X/Y -> X*1/Y. Specifically, I would like to
> convert:
>
> define void @t1a(double %a, double %b, double %d) {
> entry:
> %div = fdiv fast
2013 Aug 08
13
[LLVMdev] Convert fdiv - X/Y -> X*1/Y
I would like to transform X/Y -> X*1/Y. Specifically, I would like to
convert:
define void @t1a(double %a, double %b, double %d) {
entry:
%div = fdiv fast double %a, %d
%div1 = fdiv fast double %b, %d
%call = tail call i32 @foo(double %div, double %div1)
ret void
}
to:
define void @t1b(double %a, double %b, double %d) {
entry:
%div = fdiv fast double 1.000000e+00, %d
%mul = fmul