nir/opt_copy_prop_vars: Quiet valgrind warning about overlapping memcpy.
authorEric Anholt <eric@anholt.net>
Tue, 4 Aug 2020 23:15:04 +0000 (16:15 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 27 Aug 2020 21:39:50 +0000 (21:39 +0000)
commita82f664d0a4968cfc123be03e1608f430a99231b
tree8f8f5872c495bcd8c3c96cfd392be1aea1139ebb
parent98222db0da56018f4f61c742d8a7a1b7fb3cd986
nir/opt_copy_prop_vars: Quiet valgrind warning about overlapping memcpy.

The warning is kind of silly:

Test case 'dEQP-GLES2.functional.shaders.indexing.tmp_array.vec3_const_write_static_read_vertex'..
==1874780== Source and destination overlap in memcpy(0xa261690, 0xa261690, 160)
==1874780==    at 0x484D498: __GI_memcpy (vg_replace_strmem.c:1037)
==1874780==    by 0x596FC07: copy_entry_remove (nir_opt_copy_prop_vars.c:296)

The "memcpy is undefined if they overlap" thing is surely meant to be
"memcpy with *partial* overlap is undefined", but let's keep anyone else
from having to debug this.

Reviewed-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6178>
src/compiler/nir/nir_opt_copy_prop_vars.c