nir: Update some comments referring to imov

This was renamed when I was in high school. I remember updating the
Midgard compiler while sitting in AP Physics.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10296>
This commit is contained in:
Alyssa Rosenzweig 2021-04-16 19:40:14 -04:00 committed by Marge Bot
parent 44f744be42
commit 899dd8e60a
2 changed files with 3 additions and 3 deletions

View File

@ -570,7 +570,7 @@ nir_mov_alu(nir_builder *build, nir_alu_src src, unsigned num_components)
}
/**
* Construct an fmov or imov that reswizzles the source's components.
* Construct a mov that reswizzles the source's components.
*/
static inline nir_ssa_def *
nir_swizzle(nir_builder *build, nir_ssa_def *src, const unsigned *swiz,

View File

@ -937,10 +937,10 @@ place_phi_read(nir_builder *b, nir_register *reg,
nir_store_reg(b, reg, def, ~0);
}
/** Lower all of the phi nodes in a block to imovs to and from a register
/** Lower all of the phi nodes in a block to movs to and from a register
*
* This provides a very quick-and-dirty out-of-SSA pass that you can run on a
* single block to convert all of its phis to a register and some imovs.
* single block to convert all of its phis to a register and some movs.
* The code that is generated, while not optimal for actual codegen in a
* back-end, is easy to generate, correct, and will turn into the same set of
* phis after you call regs_to_ssa and do some copy propagation.