| commit | e65c1473ded8e278b2253b7939af7a2fbfc72714 | [log] [tgz] |
|---|---|---|
| author | Kenneth Graunke <kenneth@whitecape.org> | Thu Feb 06 15:19:54 2025 -0800 |
| committer | Marge Bot <emma+marge@anholt.net> | Mon Feb 17 12:46:07 2025 +0000 |
| tree | a38635e22526067d8a03c42b7b29da0850da6569 | |
| parent | 9af11bf306c4b67c434044a7ba2907a5c6df5542 [diff] |
nir: Eliminate dead writes to shared memory at the end of the program If the program writes to shared variables after all reads, in the last block of the program, no one will ever read the value we write. We can just eliminate these dead writes. (Thanks to Faith Ekstrand for improving the ends_program() conditions.) Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33452>