//===---------------------------------------------------------------------===//
-On darwin/x86, we should codegen:
-
- ret double 0.000000e+00
-
-as fld0/ret, not as:
-
- movl $0, 4(%esp)
- movl $0, (%esp)
- fldl (%esp)
- ...
- ret
-
-//===---------------------------------------------------------------------===//
-
This should use fiadd on chips where it is profitable:
double foo(double P, int *I) { return P+*I; }
//===---------------------------------------------------------------------===//
-The FP stackifier needs to be global. Also, it should handle simple permutates
-to reduce number of shuffle instructions, e.g. turning:
+The FP stackifier should handle simple permutates to reduce number of shuffle
+instructions, e.g. turning:
fld P -> fld Q
fld Q fld P
addl $20, %esp
ret
-This will be solved when we go to a dynamic programming based isel.
+This just requires being smarter when custom expanding fptoui.
//===---------------------------------------------------------------------===//