For NaN input, output should be NaN as well.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| mlir/lib/Dialect/Math/Transforms/PolynomialApproximation.cpp | ||
|---|---|---|
| 1036–1037 | Would changing this to UEQ do the same thing? | |
| mlir/lib/Dialect/Math/Transforms/PolynomialApproximation.cpp | ||
|---|---|---|
| 1036–1037 | Yes, that should work as well to detect NaN. Changed. | |
| mlir/lib/Dialect/Math/Transforms/PolynomialApproximation.cpp | ||
|---|---|---|
| 1036–1037 | Sorry for being unclear. My idea was to do the one check and the NaN check with a single UEQ instead of two fcmps. | |
| mlir/lib/Dialect/Math/Transforms/PolynomialApproximation.cpp | ||
|---|---|---|
| 1036–1037 | Ah, thanks, that is a nice observation :) | |
Would changing this to UEQ do the same thing?