Deric C. 12fb0d451b
[DirectX] Legalize memcpy (#139173)
Fixes #137188 

This PR legalizes memcpy for DXIL in cases where:
- the src and dst arguments are from Alloca or a GlobalVariable,
- the src and dst are pointers to an ArrayType,
- the array element types of src and dst must be equivalent, and
- the len param is a ConstantInt

These assumptions simplify the legalization and, with the addition of
#138991, covers the currently-known cases of memcpy that appear when
compiling DML shaders.

This PR may be unnecessary if #138788 determines that memset and memcpy
can be eliminated entirely.

---------

Co-authored-by: Finn Plummer <canadienfinn@gmail.com>
Co-authored-by: Greg Roth <grroth@microsoft.com>
2025-05-19 09:34:58 -07:00
..
2024-08-26 13:40:11 -04:00
2025-04-10 16:40:05 -04:00