commit | 5dad1abfdcfc772c63e7c883ab34ae1ad39461f3 | [log] [tgz] |
---|---|---|
author | Jason Ekstrand <jason.ekstrand@intel.com> | Thu Dec 13 16:30:24 2018 -0600 |
committer | Jason Ekstrand <jason.ekstrand@intel.com> | Tue Dec 18 13:13:28 2018 -0600 |
tree | 58923ac7792aa571851d186c9029925b857c6114 | |
parent | fa40a58fd9c0faeead561fd1dbaaaefc6eb61633 [diff] |
nir/dead_write_vars: Get modes directly from derefs Instead of going all the way back to the variable, just look at the deref. The modes are guaranteed to be the same by nir_validate whenever the variable can be found. This fixes clear_unused_for_modes for derefs that don't have an accessible variable. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>