• 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
.gitlab-ci Loading commit data...
bin Loading commit data...
build-support Loading commit data...
docs Loading commit data...
doxygen Loading commit data...
include Loading commit data...
scons Loading commit data...
scripts Loading commit data...
src Loading commit data...
.dir-locals.el Loading commit data...
.editorconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
Android.common.mk Loading commit data...
Android.mk Loading commit data...
CleanSpec.mk Loading commit data...
README.rst Loading commit data...
REVIEWERS Loading commit data...
SConstruct Loading commit data...
VERSION Loading commit data...
appveyor.yml Loading commit data...
common.py Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...