intel/fs/cse: Split create_copy_instr into three cases
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 15 Jan 2019 04:21:48 +0000 (22:21 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 1 Feb 2019 22:10:40 +0000 (16:10 -0600)
commitf02914a991a19de6a54e45d760eb9de8f4bbae46
treeaef58155722b1398068a0b560573a955ec04ed02
parentf409a08e5fd66183336bd236f159061df9707ca9
intel/fs/cse: Split create_copy_instr into three cases

Previously, we tried to combine all cases where the instruction being
CSE'd writes to more than one MOV worth of registers into one case with
a bit of special casing for LOAD_PAYLOAD.  This commit splits things so
that LOAD_PAYLOAD is entirely it's own case.  This makes tweaking the
LOAD_PAYLOAD case simpler in the next commit.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_fs_cse.cpp