<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/146518>146518</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[RISCV] Crash on pass RISCVInsertVSETVLI
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sc-clulzze
</td>
</tr>
</table>
<pre>
`Assertion `I->containsInterval(Start, End) && "Segment is not entirely in range!"' failed.`
Godbolt example - https://godbolt.org/z/GxTb5Grdd
Looking at backtace, problem is inside RISCVInsertVSETVLI pass, issue reproduced on ToT
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxskcGO2yAURb_meYMS4ZeA7YUX6UwcRZpVE2UP5sWhg8ECnM7k6ytnRqpUdcUCuDrnXpWSHTxRC-IHiNdCzfkWYpv6Ve9m93hQoYP5bEHyXUoUsw2egeTHFWz2ffBZWZ-OPlO8KwdYn7KKGfCF7b0BbBigBJQMEE80jOQzs4n5kBn5bCO5T2Y9i8oPBFgCImDFrso6MmuQHPjuEIwOLjP6UOPkiK3YLecpwWYH2AF2w9f9OsQBsHsAdoePsxaHaAzw3VsI79YPTGWmVf-eVU8L3BSDdjQuLNYna4j9PJ5eLke_GF5O-_Pl7cgmldLy2KY0E4s0xWDmngwLnp3DuTDtxjSbRhXUlpUoNxVKWRW3Vsur5H1fSt5UWui6FliVRqKQEq-iloVtkaPgFS9LxC1Wa8lVo_umNKapr01TwpbTqKxbO3cfF7PiydCWWynKunBKk0vPwRA9_f4iXMoTr0Vsl08rPQ8JttzZlNPfmGyzey791AXxyl6iSrfFaLH9TwvFHF37T-M232a97sMI2C3R38dqiuEX9RmwewIlwO6b-N7inwAAAP__Hw_DPw">