mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 12:08:06 +02:00
This optimizes v_add(c, s_lshl(a, b)) to v_mad_u32_u24(a, 1<<b, c) if 'b' is a constant (less than or equal to 6 to avoid creating literals) and 'a' known to be a 16-bit or a 24-bit value. On GFX9+, this is already optimized to v_lshl_add_u32. fossils-db (Polaris10): Totals from 1916 (1.36% of 140385) affected shaders: SGPRs: 88322 -> 87780 (-0.61%); split: -0.66%, +0.05% CodeSize: 7852668 -> 7851800 (-0.01%); split: -0.01%, +0.00% Instrs: 1533965 -> 1530459 (-0.23%); split: -0.23%, +0.00% Cycles: 57001852 -> 56983244 (-0.03%); split: -0.03%, +0.00% VMEM: 372561 -> 371733 (-0.22%); split: +0.03%, -0.25% SMEM: 108859 -> 103711 (-4.73%); split: +0.23%, -4.96% VClause: 37231 -> 37204 (-0.07%) SClause: 58116 -> 58086 (-0.05%); split: -0.06%, +0.01% Copies: 199953 -> 199931 (-0.01%); split: -0.03%, +0.02% Branches: 63478 -> 63477 (-0.00%) PreSGPRs: 61818 -> 61816 (-0.00%) Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7673> |
||
|---|---|---|
| .. | ||
| addrlib | ||
| common | ||
| compiler | ||
| llvm | ||
| registers | ||
| vulkan | ||
| Android.addrlib.mk | ||
| Android.common.mk | ||
| Android.compiler.mk | ||
| Android.mk | ||
| Makefile.sources | ||
| meson.build | ||