Skip to content
Snippets Groups Projects
Commit 184d3930 authored by Dylan Baker's avatar Dylan Baker
Browse files

nir: correct use of identity check in python


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")
Reviewed-by: default avatarMatt Turner <mattst88@gmail.com>
(cherry picked from commit 717606f9)
parent 9bca129b
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment