mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
nir/algebraic: Remove useless ftrunc inside f2i/f2u
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37186>
This commit is contained in:
parent
c49d6e0480
commit
4338f7d033
1 changed files with 2 additions and 0 deletions
|
|
@ -1876,6 +1876,8 @@ optimizations.extend([
|
||||||
# Conversions
|
# Conversions
|
||||||
(('f2i', ('ftrunc', a)), ('f2i', a)),
|
(('f2i', ('ftrunc', a)), ('f2i', a)),
|
||||||
(('f2u', ('ftrunc', a)), ('f2u', a)),
|
(('f2u', ('ftrunc', a)), ('f2u', a)),
|
||||||
|
(('f2i', ('ffloor', 'a(is_not_negative)')), ('f2i', a)),
|
||||||
|
(('f2u', ('ffloor', a)), ('f2u', a)),
|
||||||
|
|
||||||
# Conversions from 16 bits to 32 bits and back can always be removed
|
# Conversions from 16 bits to 32 bits and back can always be removed
|
||||||
(('f2fmp', ('f2f32', 'a@16')), a),
|
(('f2fmp', ('f2f32', 'a@16')), a),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue