nir: Fix comparison for nir_deref_instr_is_known_out_of_bounds()
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 30 Jul 2019 09:04:14 +0000 (11:04 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Tue, 30 Jul 2019 15:14:28 +0000 (17:14 +0200)
commit7788992bc6864a072c824e16b666acad1e0786c8
treed8e556fce65f9013c49989505c2ec23c90f8fff5
parent9d7ead6f9bc8d13126127b17302d927b1f74cdbe
nir: Fix comparison for nir_deref_instr_is_known_out_of_bounds()

There was an off-by-one error.

Fixes: 156306e5e62 ("nir/find_array_copies: Handle wildcards and overlapping copies")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_deref.c