<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/81766>81766</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm/lib/Target/AMDGPU/SIISelLowering.cpp: 2 * suspicious if statements
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dcb314
</td>
</tr>
</table>
<pre>
Static analyser cppcheck says
1.
llvm/lib/Target/AMDGPU/SIISelLowering.cpp:14576:46: style: Same expression on both sides of '||'. [duplicateExpression]
Source code is
// v2i16 (scalar_to_vector i16:x) -> v2i16 (bitcast (any_extend i16:x))
if (VT == MVT::v2i16 || VT == MVT::v2f16 || VT == MVT::v2f16) {
2.
llvm/lib/Target/AMDGPU/SIISelLowering.cpp:6308:65: style: Same expression on both sides of '||'. [duplicateExpression]
Source code is
if (VT == MVT::v4f16 || VT == MVT::v8f16 || VT == MVT::v16f16 ||
VT == MVT::v16f16)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8U1Fr2zAQ_jXnl6PBPtmR_eAHd6lHYYVBur4WWb4k2hTLWHLb_PshrzQZrBQ2GAhZ5jvd9919OuW92Q_MNRTXUGwSNYeDm-pedyLLk871p3obVDAa1aDsyfOEehz1gfUP9OrkId1A2vzas9Xln7VPR6DWmg6ovVfTngNQ29xtPn_9BtRub2-3bL-4Z57MsF_pcQTRZHkh1yCaPG7ow8lyPGzVkZFfxom9N25AN2DnwgG96dmj2yGQBPkpLpIrhOK6n0drtAp883YLis2lvK2bJ82oXc9oPF5CiIhALVCLT2SyNQKVXiurpsfgHp9YBzehyaLGF6AKr0DcnCM7E7TyIR7VcHrkl8BDfxEe1xuNidrLh3sEsQGxwbuHexANiOY13VIU_hHffYxHcSCvL2ujf_ZoLdIyfor_bNHvDr3fuPyDxpQf4Nn6HHA2Ct-PfTM06WvRV6JSCdeZTGUlUlnmyaHOqx2XRU-ZJi2lWmuhqaxId7LIZZFWiakppTylLM9kJtJ8VXIhOyWoSPtuV6gU8pSPythVdGzlpn1ivJ-5LjO5XidWdWz9MsJEAz_jAgJRnOipjneuunnvIU-t8cGfswQTLNd_8wyQEKhBP_vRaONmHy3xQQU-8hB8Mk-2PoQw-tiqZZj2JhzmbqXdwvVKGaWNk_vOOlIuuj1Qu9T1MwAA__-RVlJz">