• Caio Marcelo de Oliveira Filho's avatar
    nir: Only convert SSA values to regs when needed · ded2c202
    Caio Marcelo de Oliveira Filho authored
    If the SSA def produced by this instruction is only in the block in
    which it is defined and is not used by ifs or phis, then we don't have
    a reason to convert it to a register in
    nir_lower_ssa_defs_to_regs_block().
    
    The special case for derefs is covered by the general case, so can be
    removed: at this point all derefs in the block are
    materialized (i.e. the whole deref chain is in the block) and derefs
    are not used in phis.
    
    v2: Fix wrong check for if_uses.  If there's such an use, the def is
        not "local_to_block".  (Jason)
    Reviewed-by: Jason Ekstrand's avatarJason Ekstrand <jason@jlekstrand.net>
    ded2c202
Name
Last commit
Last update
..
amd Loading commit data...
broadcom Loading commit data...
compiler Loading commit data...
egl Loading commit data...
freedreno Loading commit data...
gallium Loading commit data...
gbm Loading commit data...
getopt Loading commit data...
glx Loading commit data...
gtest Loading commit data...
hgl Loading commit data...
imgui Loading commit data...
intel Loading commit data...
loader Loading commit data...
mapi Loading commit data...
mesa Loading commit data...
util Loading commit data...
vulkan Loading commit data...
SConscript Loading commit data...
meson.build Loading commit data...