OCamlPro / flambda-task-force

13 stars 1 forks source link

Type specialisation of operations #109

Open chambart opened 8 years ago

chambart commented 8 years ago

Worth considering currently:

Some could be done without propagating type informations yet:

let set a i x = Array.set a i x
let () = for i = 0 to Array.length a do set a i (float i) done

This change would require to add some more precision to inline_and_simplify value approximations: add the case Any_float and Any_int that does not carry any information about the exact value except the type.