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

    <tr>
        <th>Summary</th>
        <td>
            how to analysis the thread idx in cuda
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    just want to know are there some utils to analysis the thread idx in cuda, like use scev to analysis induction variable in loop.
for example:
data[10] = {1,2,3,4,5};
a = data[idx%2];
 how can we kwon the value in every thread lane ?
more than:
how to do the alias analysis in cuda.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyFUMuSmzAQ_BpxUYUCyQJz0GG9rr3nEwZpAloLyYUErP8-A97dJKdUMegx6p7u7qN96PclZb5ByDxHfgtx4zAjzyPSP8UJ-ZKdT3sTAvhHcmlvUs0Iljv7wV3gZrHAxCv37kaAREiD6z8YF-xisouBrzA76D3uOB_jvWTVlVUvv-LM8QOmu0cmX553FjIwdakrpq6cSar2UtMcQSWpTlSKtVcmL08AHK8-YaSNCSUI-93nI_kzEPiG_LaRmN3KCn451OCK8-PLmYeAxPb2BE7xCAXCt7adiQzaeHCAd5D-dntEUhao66aRQsi2bQurpe1kB0V22aP-ZPhPrMUyez3mfE_7aPFG3-DyuPSliRMdvF-_lh_3Ob6jyXR0KS2YaKPaVqli1Fj3tayMVEbUnW2kPXfY9KZSZ2lMD6fCQ48-acqNCRFw4wcF7Sm_wmlRCVF1taoa2dRtCapVxkIjO1M3PRp2qnAC58tdRxnnoZj1IalfhkRN71JOf5qQkhsC4jGO-GHJY5z1TxdeRwxD15yLY7w-5P8GvWTZBg">