diff options
author | Sagar Ghuge <[email protected]> | 2019-05-30 14:15:51 -0700 |
---|---|---|
committer | Sagar Ghuge <[email protected]> | 2019-07-01 10:14:22 -0700 |
commit | 80117117bda10144df57614e718b8c19ee7afdf4 (patch) | |
tree | 478f0ec898cc89f0f5d5bf1b3980cc06595ee055 /src/compiler/nir/nir.h | |
parent | 81d342e2a14d9d4260d3b03ed2c257c8ae8388bc (diff) |
nir: Add optimization to use ROR/ROL instructions
v2: 1) Add more optimization rules for ROL/ROR (Matt Turner)
2) Add lowering rules for ROL/ROR (Matt Turner)
Signed-off-by: Sagar Ghuge <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r-- | src/compiler/nir/nir.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index df6dc5ba904..56b5c996af1 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -2423,6 +2423,9 @@ typedef struct nir_shader_compiler_options { /* Lowers when 32x32->64 bit multiplication is not supported */ bool lower_mul_2x32_64; + /* Lowers when rotate instruction is not supported */ + bool lower_rotate; + unsigned max_unroll_iterations; nir_lower_int64_options lower_int64_options; |