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/compiler/Makefile.sources | |
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/compiler/Makefile.sources')
-rw-r--r-- | src/compiler/Makefile.sources | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/Makefile.sources b/src/compiler/Makefile.sources index c6daf4d9c8f..d3b06564832 100644 --- a/src/compiler/Makefile.sources +++ b/src/compiler/Makefile.sources @@ -274,6 +274,7 @@ NIR_FILES = \ nir/nir_opt_cse.c \ nir/nir_opt_dce.c \ nir/nir_opt_dead_cf.c \ + nir/nir_opt_find_array_copies.c \ nir/nir_opt_gcm.c \ nir/nir_opt_global_to_local.c \ nir/nir_opt_if.c \ |