intel/mi: Optimize away LOAD_REGISTER_REG from a register to itself
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 1 Apr 2019 23:00:25 +0000 (16:00 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 25 Jul 2019 18:42:55 +0000 (18:42 +0000)
commit79b8e3c260003a7ae4089a03d69aeb0ad50c8c0e
treea533fe59f37ecd4dcedd31451b237177c7f6fd5c
parentfe7ed6b0574d8b55494839ce6f280f7ff0110908
intel/mi: Optimize away LOAD_REGISTER_REG from a register to itself

We might want to resolve something to be in a particular register,
so we can access it outside of the gen_mi framework...but it may already
be in that register, at which point there's no work to do.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/intel/common/gen_mi_builder.h