<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/70704>70704</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[SPIRV] Add missing folding for scalar/vector SPIR-V ops
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
inbelic
</td>
</tr>
</table>
<pre>
It has been noted that we are missing the fold definitions for various basic scalar/vector SPIR-V ops. As a result, many of these operations are not folded away in the IR and it is required to use other tools to do so, eg: spirv-opt. We are motivated to do so as it would allow for the IR to be more readable, particularly when we have transformed/lowered from another dialect into SPIR-V and are generating new operations that have the potential to be folded away.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8Uk2PmzwQ_jXmMkqUmI-EA4e87yrS3qqttD0PeABXxkPtAZR_X5nstnvqaSTwPF_zYIx28ESNKv9T5UuGi4wcGutbcrbLWjaP5lVgxAgtkQfPQgZkRIGNAAPBZGO0fgAZCXp2Bgz11lux7CP0HGDFYHmJ0GK0HcQOHQal7yt1wgG-f3t9O7wDz_EItwgIgeLiROn_YUL_AO4TciTgmQI-UROtZ9npyABu-ADrdwWvb4DegBWwEQL9WmxIehmWBCEjBRBmF9MnwxA5EdGg8hvE2Yb1wLMc4ceHNRa7ojwB9teAMWFvvDgD6Bxvu8UPZmFo01YgCIQGW0cJfsYgtlscBveAbSSfohtxJZCAPvYcJjJK3x1vlNT2gSdA_1RrLDrqBKwX_gwrOUz6BvJ7Jn4AT9vXhPYDPSlGgpmFvFh0Hwq_5HbMTJObOq8xo-Zc1deqPhdVlY1Nd9Zd3WptzJWubUl9X9dl3-eFvpR51VaZbfRJ5-dTfjpfi0JXRyqxai9lTRejK21KVZxoQuuOzq3TkcOQ2RgXai6ny6nIHLbk4t47rZP8_afSOtUwNGnn0C5DVMXJ2SjxL4pYcXthUxzvqnyBmzF_epjMPWf4R9myJbhmFJmjym9K35W-D1bGpT12PKVbuPVzHObAP6kTpe-7xKj0fbfwOwAA___gahr1">