[Mesa-dev] [PATCH] nir: fix alarming comment

Timothy Arceri tarceri at itsqueeze.com
Thu May 31 09:57:51 UTC 2018


safe -> precision safe
---
 src/compiler/nir/nir_opt_algebraic.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py
index 21b9acecbe2..aeb280ffb97 100644
--- a/src/compiler/nir/nir_opt_algebraic.py
+++ b/src/compiler/nir/nir_opt_algebraic.py
@@ -704,8 +704,8 @@ before_ffma_optimizations = [
 # they help code generation but do not necessarily produce code that is
 # more easily optimizable.
 late_optimizations = [
-   # Most of these optimizations aren't quite safe when you get infinity or
-   # Nan involved but the first one should be fine.
+   # Most of these optimizations aren't quite precision safe when you get
+   # infinity or Nan involved but the first one should be fine.
    (('flt',          ('fadd', a, b),  0.0), ('flt',          a, ('fneg', b))),
    (('flt', ('fneg', ('fadd', a, b)), 0.0), ('flt', ('fneg', a),         b)),
    (('~fge',          ('fadd', a, b),  0.0), ('fge',          a, ('fneg', b))),
-- 
2.17.0



More information about the mesa-dev mailing list