diff options
author | Jason Ekstrand <[email protected]> | 2018-10-22 18:29:52 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-10-23 12:22:29 -0500 |
commit | ecb7775e1cac7f3119e5d1c31ce1572509c0f1bb (patch) | |
tree | 3e5eb45d28c55fa54bb9d2ce02e3a78d53771168 /src/compiler/nir | |
parent | b75fb8ee36e907820e23dde90f15d0774b8d1b6b (diff) |
nir/algebraic: Fix a typo in the bit size validation code
The conon_bit_class and canon_var_class variables got switched.
Fixes: 932c650e0b "nir/algebraic: Loosen a restriction on variables"
Reported-by: Ian Romanick <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r-- | src/compiler/nir/nir_algebraic.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_algebraic.py b/src/compiler/nir/nir_algebraic.py index 4134d496030..17f64625fed 100644 --- a/src/compiler/nir/nir_algebraic.py +++ b/src/compiler/nir/nir_algebraic.py @@ -362,8 +362,8 @@ class BitSizeValidator(object): if var_class == 0: self._var_classes[var.index] = bit_class else: - canon_bit_class = self._class_relation.get_canonical(var_class) - canon_var_class = self._class_relation.get_canonical(bit_class) + canon_var_class = self._class_relation.get_canonical(var_class) + canon_bit_class = self._class_relation.get_canonical(bit_class) assert canon_var_class < 0 or canon_bit_class < 0 or \ canon_var_class == canon_bit_class, \ 'Variable {0} cannot be both {1}-bit and {2}-bit' \ |