<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64861>64861</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[DAG] replaceStoreOfInsertLoad - handle legal implicit truncation in INSERT_VECTOR_ELT
</td>
</tr>
<tr>
<th>Labels</th>
<td>
llvm:codegen
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
RKSimon
</td>
</tr>
</table>
<pre>
ba818c4019c550e1a413e1563a05b241b508defd / D158366 enforced matching vector element vs inserted element types to address Issue #64655
We can improve on this by allowing implicit truncation IF the vector element type is still legal and byte sized, we will then need to truncate the scalar element before its stored.
CC @lukel97
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskk9rGzEQxT-N9jLErP5t1oc9uHZcTEMDSWiPYVYae9VqJSNpHdxPX3YTmlJ6kWAkfvPevMGc3SkQdUx_YnpX4VSGmLrHL09ujKHqo712Pba8Narma6N1TRwVl8R1I7HWvVC813Vr6WiBiT3suG5l0wCFY0yGLIxYzODCCS5kSkxAnkYKBS4ZXMiUCtk_tXI9U4YSAa1NlDMccp4ImJCNarRm9Y7Vm7fzO4HBAG48p3ghiAHK4DL0V0Dv4-vc0I1n74wrUNIUDBYXAxz2UAb6V8vcF1yGXJz34OmEHjBY6K-FILtfZJnYwivB6_xeBgoQiOys9J1NCzYb9PiB7ekYE4ErMzkmsqu_HWy3wFTtp5_k17eV7aRdyzVW1PFmLRoh1lxVQ4dKGSuFJlSyEUJwVNhIXaMkarhtK9eJWsi6FZzLmmu1Es3t-oh1e2xbLhQKpmoa0fmV95dxFdOpcvNUu0a1Da889uTzEr8Q8w8mNyZaOlFgQswrkbq5fNNPpzzrdbnkD1RxxS_Ls9t8ZnoHic4eDT3Ndh-OhyXg-4gWbmDAYD29T_d_2bgAh69Pd4_PL9_uts8Pjy9398_VlHw3lHLOTG6Y2DOxP7kyTP3KxJGJ_aL47bo5p_iDTGFivxjMTOwXj78DAAD__wYK8Uo">