radv/aco,aco: set lower_fmod

This simplifies ACO and allows the lowered code to be optimized (in
particular, constant folded).

Totals from affected shaders:
SGPRS: 1776 -> 1776 (0.00 %)
VGPRS: 1436 -> 1436 (0.00 %)
Spilled SGPRs: 0 -> 0 (0.00 %)
Spilled VGPRs: 0 -> 0 (0.00 %)
Private memory VGPRs: 0 -> 0 (0.00 %)
Scratch size: 0 -> 0 (0.00 %) dwords per thread
Code Size: 203452 -> 203564 (0.06 %) bytes
LDS: 0 -> 0 (0.00 %) blocks
Max Waves: 103 -> 103 (0.00 %)

At least some of the code size increase seems to be from literals being
applied to instructions as a result of constant folding.

v2: remove fmod/frem handling in init_context()

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
This commit is contained in:
Rhys Perry
2019-10-03 15:32:19 +01:00
parent 0fe2e04f2d
commit a87b0f5141
3 changed files with 1 additions and 31 deletions
@@ -201,8 +201,6 @@ void init_context(isel_context *ctx, nir_shader *shader)
case nir_op_fmax3:
case nir_op_fmin3:
case nir_op_fmed3:
case nir_op_fmod:
case nir_op_frem:
case nir_op_fneg:
case nir_op_fabs:
case nir_op_fsat: