<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/149018>149018</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Replace isSupportedInstr with RISCVII:elementsDependOnVL in RISCVVLOptimizer
</td>
</tr>
<tr>
<th>Labels</th>
<td>
backend:RISC-V
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
mikhailramalho
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
lukel97
</td>
</tr>
</table>
<pre>
RISCVII::elementsDependOnVL uses TS flags defined in tablegen to determine if it's safe to reduce the VL of a pseudo, and RISCVVectorPeephole already uses it in it's implementation of VL reduction.
Now that we've added pretty much all pseudos to isSupportedInstr (#147647), we should look at reusing this.
We need to make sure that other extension tablegen files have `ElementsDependOn` set correctly, e.g. RISCVInstrInfoXRivos.td, RISCVInstrInfoXSf.td, RISCVInstrInfoXSfmm.td, etc.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0k0GPqzYUhX-N2VwNcgyBYcEinWmkSFGnmlRpt8a-YDfGRvYlafrrKyb0jTTvvRWCI875fO-xTMkOHrFl21-YEKO9GGldlKN0JjAh2PY1kzOZEFs3X9A1ddYFfW_fD6eX8-HAih0rduhwRE_pFSf0-s2fjzAnTPDHCXonhwQae-tRg_VAsnM4oAcKoJEwjtYj2B4sMVEnSLLHRYuoZ4VABuF8hNCDhCnhrAMTLyC9hg-CMyoK8XfEyQSHIF1Eqe-PdEtL3mprx-kBKckGv_idj4-M5T0HxneM734LNyAjCW7IRH1FkFqjhiki0R3GWRmQzq0gacG06TRPU4iE-uATRWDimYliU9ZVWTPRLLQ3hGTC7DS4EC4gCSLOyfoByNj0f_afCB5RL6ajvCCkOeIDJpDBCPgPoU8L_LcR9tZhAiOvCKziv37ZAqs4JCRQIUZU5O4LC-ZD_hjdB-7B9-Gvd3sNKSe96F-kU_-z7-O4Kkgqz3Rb6KZoZIbtpt6KquTPRZGZViusNkXZdR2vqkZJVZQFl0p1vBAKhchsK7jY8npT8bLkRZFv6gY139aNKrBUpWAlx1Falzt3HfMQh8ymNGO7KRu-ec6c7NCltb2dVBf0mhW7BffpvPY3tsu_T908JFZyZxOlTzey5LB9x8lJhd-v82bJwGfZf9B069cqHt8msqP9F2M2R9caoikt90PsmdgPlszc5SqMTOyX8PXxNMXwNypiYv9xrsTEfj3atRX_BQAA__9tLDUW">