c757b22c5fac6bb7c1e363244c96c5843683ba82
Certain instructions essentially behave as a move of half of their full src to their half dst. More specifically: - `cov.u32u16 hdst, src`: moves lower half of src to hdst. - `[a]shr.b hdst, src, 16`: moves upper half of src to hdst. In mergedregs mode, if the src and dst of these instructions are assigned overlapping registers, they can be removed. Implement this by 1) merging the src and dst merge sets of such instruction before RA, and 2) removing them if RA assigned overlapping registers. Totals from 7483 (4.55% of 164575) affected shaders: Instrs: 8913039 -> 8859209 (-0.60%); split: -0.62%, +0.01% CodeSize: 16588988 -> 16489082 (-0.60%); split: -0.61%, +0.00% NOPs: 2020848 -> 2013070 (-0.38%); split: -0.71%, +0.33% MOVs: 352179 -> 352146 (-0.01%); split: -0.06%, +0.05% COVs: 256946 -> 242972 (-5.44%) Full: 145737 -> 145738 (+0.00%) (ss): 224816 -> 222102 (-1.21%); split: -1.24%, +0.03% (sy): 109208 -> 109222 (+0.01%); split: -0.01%, +0.02% (ss)-stall: 842387 -> 831457 (-1.30%); split: -1.63%, +0.33% (sy)-stall: 3353188 -> 3337732 (-0.46%); split: -0.62%, +0.16% Preamble Instrs: 1403333 -> 1401362 (-0.14%) Cat0: 2219312 -> 2211530 (-0.35%); split: -0.65%, +0.30% Cat1: 690367 -> 677240 (-1.90%); split: -1.99%, +0.09% Cat2: 3279215 -> 3246293 (-1.00%) Cat7: 412865 -> 412866 (+0.00%) Signed-off-by: Job Noorman <jnoorman@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35858>
`Mesa <https://mesa3d.org>`_ - The 3D Graphics Library ====================================================== Source ------ This repository lives at https://gitlab.freedesktop.org/mesa/mesa. Other repositories are likely forks, and code found there is not supported. Build & install --------------- You can find more information in our documentation (`docs/install.rst <https://docs.mesa3d.org/install.html>`_), but the recommended way is to use Meson (`docs/meson.rst <https://docs.mesa3d.org/meson.html>`_): .. code-block:: sh $ meson setup build $ ninja -C build/ $ sudo ninja -C build/ install Support ------- Many Mesa devs hang on IRC; if you're not sure which channel is appropriate, you should ask your question on `OFTC's #dri-devel <irc://irc.oftc.net/dri-devel>`_, someone will redirect you if necessary. Remember that not everyone is in the same timezone as you, so it might take a while before someone qualified sees your question. To figure out who you're talking to, or which nick to ping for your question, check out `Who's Who on IRC <https://dri.freedesktop.org/wiki/WhosWho/>`_. The next best option is to ask your question in an email to the mailing lists: `mesa-dev\@lists.freedesktop.org <https://lists.freedesktop.org/mailman/listinfo/mesa-dev>`_ Bug reports ----------- If you think something isn't working properly, please file a bug report (`docs/bugs.rst <https://docs.mesa3d.org/bugs.html>`_). Contributing ------------ Contributions are welcome, and step-by-step instructions can be found in our documentation (`docs/submittingpatches.rst <https://docs.mesa3d.org/submittingpatches.html>`_). Note that Mesa uses gitlab for patches submission, review and discussions.
Description
Languages
C
75.5%
C++
17.2%
Python
2.7%
Rust
1.8%
Assembly
1.5%
Other
1%