diff options
author | Timothy Arceri <tarceri@itsqueeze.com> | 2018-05-30 20:32:24 +1000 |
---|---|---|
committer | Timothy Arceri <tarceri@itsqueeze.com> | 2018-05-30 22:48:37 +1000 |
commit | e8b368ad1c4bdafc32505b722617b8ab19296fbe (patch) | |
tree | ef8cdab96537004e1e9aaec1792e8e815dcfeace | |
parent | c2799574eb104218ac4f6b8a3d64b8a0f8c89525 (diff) |
nir: add unsigned comparison simplifications
This avoids loop unrolling regressions in Wolfenstein II on DXVK
with an upcoming optimisation series from Samuel.
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-rw-r--r-- | src/compiler/nir/nir_opt_algebraic.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py index 909ea3daf4..21b9acecbe 100644 --- a/src/compiler/nir/nir_opt_algebraic.py +++ b/src/compiler/nir/nir_opt_algebraic.py @@ -149,7 +149,9 @@ optimizations = [ (('~inot', ('feq', a, b)), ('fne', a, b)), (('~inot', ('fne', a, b)), ('feq', a, b)), (('inot', ('ilt', a, b)), ('ige', a, b)), + (('inot', ('ult', a, b)), ('uge', a, b)), (('inot', ('ige', a, b)), ('ilt', a, b)), + (('inot', ('uge', a, b)), ('ult', a, b)), (('inot', ('ieq', a, b)), ('ine', a, b)), (('inot', ('ine', a, b)), ('ieq', a, b)), |