Skip to content
Discussion options

You must be logged in to vote

I think you're misunderstanding me: the goal of the compiler is not to avoid overflow, or improve floating point error accumulation; the goal of the compiler is to optimize code without significantly affecting the numerics as expressed in the original program. If the original program does not overflow, the compiled program should maintain that property. If the original program does overflow, the compiled program should maintain that property.

Of course, floating point math being what it is, you can never guarantee exact bitwise equivalence before and after a compiler rewrite, but what you can do is avoid certain optimizations that have been found to be problematic in practice (and XLA has…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@unalmis
Comment options

@unalmis
Comment options

@jakevdp
Comment options

Answer selected by unalmis
@unalmis
Comment options

@jakevdp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants