<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/64422>64422</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [RISCV] Add isCommutable to vector pseudos like VADD
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            backend:RISC-V
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          topperc
      </td>
    </tr>
</table>

<pre>
    MachineCSE can commute instructions to find more CSE opportunities. We should make the vector pseudos commutable to enable this. We probably need custom handling in commuteInstructionImpl to skip the merge operand.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckTmP2zAQhX8N1QwsSNSxVsHCsSPARZos4NQ8RhJjXuCxwP77QNpFFklFFvO-mfceT0mvDpGR4RsZbhUvefORZR8CRlkJr97ZDy437fD6-h0kdyC9tSUjaJdyLDJr7xJkD4t2CqyPCPukD8HHXJzOGlMNvxDS5otRYPkTIW8IbyizjxASFuXTJ5YLgzsM3cdv0x_iEL3gwryDQ1QgS8rewsadMtqtoP9edf866m6D2VHpqcOx0GJcEXzAyJ2qK8U6NXUTr5C149S2Y9f1Y7WxoaG4DLwdG6GobKalOcuhnyjvqBjky7nSjDa0a85N3w7d0I81Xfgk-peFi-WMU3smfYOWa1Mb82ZrH9dKp1SQjX1PaWW4QJOOwCkVXD7RKdJdft5fr6cHoXSvIbJdehJlTaRvjE45fcGyzuYobJc8yHCDi1Kg0_WfBP-L1-gnwuNyu1UlGrblHBLpLoTOhM6rzlsRtfSW0Hlf8_mcQvS_UWZC58NAInQ-PPwJAAD__2BgvqY">