Skip to content

nir: fuse b2f32 + float comparison to according scmp operation + handle additional ops on r600

Gert Wollny requested to merge gerddie/mesa:nir-fuse_scmp into main

Apply the optimization for drivers that don't set lower_scmp- this should also have an impact on vc4, lima, ir2 and broadcom.

Shader-DB r600/Cayman (only changes):

    total dw in shared programs: 1620884 -> 1617730 (-0.19%)
    dw in affected programs: 425748 -> 422594 (-0.74%)
    helped: 267
    HURT: 5
    helped stats (abs) min: 2 max: 56 x̄: 11.93 x̃: 8
    helped stats (rel) min: 0.06% max: 10.91% x̄: 3.49% x̃: 2.70%
    HURT stats (abs)   min: 2 max: 16 x̄: 6.40 x̃: 4
    HURT stats (rel)   min: 0.14% max: 0.97% x̄: 0.42% x̃: 0.27%
    95% mean confidence interval for dw value: -13.07 -10.12
    95% mean confidence interval for dw %-change: -3.77% -3.07%
    Dw are helped.
    
    total gprs in shared programs: 41182 -> 41203 (0.05%)
    gprs in affected programs: 1338 -> 1359 (1.57%)
    helped: 63
    HURT: 74
    helped stats (abs) min: 1 max: 4 x̄: 1.21 x̃: 1
    helped stats (rel) min: 5.88% max: 27.27% x̄: 12.75% x̃: 13.33%
    HURT stats (abs)   min: 1 max: 5 x̄: 1.31 x̃: 1
    HURT stats (rel)   min: 3.85% max: 60.00% x̄: 16.72% x̃: 14.84%
    95% mean confidence interval for gprs value: -0.09 0.39
    95% mean confidence interval for gprs %-change: 0.29% 6.05%
    Inconclusive result (value mean confidence interval includes 0).
    
    total alu_groups in shared programs: 203632 -> 203324 (-0.15%)
    alu_groups in affected programs: 57746 -> 57438 (-0.53%)
    helped: 143
    HURT: 45
    helped stats (abs) min: 1 max: 16 x̄: 2.75 x̃: 1
    helped stats (rel) min: 0.05% max: 20.00% x̄: 5.64% x̃: 5.00%
    HURT stats (abs)   min: 1 max: 8 x̄: 1.89 x̃: 1
    HURT stats (rel)   min: 0.49% max: 9.64% x̄: 3.72% x̃: 2.78%
    95% mean confidence interval for alu_groups value: -2.21 -1.07
    95% mean confidence interval for alu_groups %-change: -4.23% -2.56%
    Alu_groups are helped.

    total cf in shared programs: 88233 -> 88226 (<.01%)
    cf in affected programs: 412 -> 405 (-1.70%)
    helped: 21
    HURT: 6
    helped stats (abs) min: 1 max: 2 x̄: 1.05 x̃: 1
    helped stats (rel) min: 5.56% max: 33.33% x̄: 20.50% x̃: 20.00%
    HURT stats (abs)   min: 1 max: 6 x̄: 2.50 x̃: 2
    HURT stats (rel)   min: 0.99% max: 33.33% x̄: 11.55% x̃: 9.01%
    95% mean confidence interval for cf value: -0.94 0.42
    95% mean confidence interval for cf %-change: -19.73% -7.03%
    Inconclusive result (value mean confidence interval includes 0).
Edited by Gert Wollny

Merge request reports