Skip to content
  • Erico Nunes's avatar
    nir/algebraic: add new fsum ops and fdot lowering · 4a407df6
    Erico Nunes authored
    
    
    The Mali400 pp doesn't implement fdot but has fsum3 and fsum4, which can
    be used to optimize fdot lowering. fsum2 is not implemented and can be
    further lowered to an add with the vector components.
    Currently lima ppir handles this lowering internally, however this
    happens in a very late stage and requires a big chunk of code compared
    to a nir_opt_algebraic lowering.
    By having fsum in nir, we can reduce ppir complexity and enable the
    lowered ops to be part of other nir optimizations in the optimization
    loop.
    
    Signed-off-by: default avatarErico Nunes <nunes.erico@gmail.com>
    Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
    4a407df6