diff options
author | Jason Ekstrand <[email protected]> | 2018-07-23 19:16:56 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-08-23 21:47:47 -0500 |
commit | 53072582dc9401c76bb8ef72d8f321f684fb0a15 (patch) | |
tree | 2229427c9732e857225385ec7c8e1b8a6aeec87b /src/intel/compiler/brw_nir.h | |
parent | a4a9c075496c64ac333e6c0b930d8c2eb5175e8e (diff) |
nir: Add an array copy optimization
This peephole optimization looks for a series of load/store_deref or
copy_deref instructions that copy an array from one variable to another
and turns it into a copy_deref that copies the entire array. The
pattern it looks for is extremely specific but it's good enough to pick
up on the input array copies in DXVK and should also be able to pick up
the sequence generated by spirv_to_nir for a OpLoad of a large composite
followed by OpStore. It can always be improved later if needed.
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_nir.h')
0 files changed, 0 insertions, 0 deletions