Skip to content

nir: correct use of identity check in python

Dylan Baker requested to merge dbaker/mesa:fix-nir-is-not into master

python has the identity operator is, and the equality operator ==. Using is with strings sometimes works in cpython due to optimizations (they have some kind of cache), but it may not always work.

Fixes: 96c4b135 ("nir/algebraic: Don't put quotes around floating point literals")

Merge request reports