llvm-project
cc13f3ba - Correctly round FP -> BF16 when SDAG expands such nodes (#82399)

Commit
1 year ago
Correctly round FP -> BF16 when SDAG expands such nodes (#82399) We did something pretty naive: - round FP64 -> BF16 by first rounding to FP32 - skip FP32 -> BF16 rounding entirely - taking the top 16 bits of a FP32 which will turn some NaNs into infinities Let's do this in a more principled way by rounding types with more precision than FP32 to FP32 using round-inexact-to-odd which will negate double rounding issues.
Author
Parents
Loading