Hi,<br clear="all"><div>I am using LLVM for implementing LoopFission pass.</div><div>I am using LoopPass.</div><div>I know that for checking circular dependency in loop I have to use LoopDependenceAnalysis</div><div><span style="background-color:rgb(255,255,255);text-align:-webkit-left"><br>
</span></div><div><span style="background-color:rgb(255,255,255);text-align:-webkit-left">This is what i want to do.</span></div><div style="text-align:-webkit-left"><span style="background-color:rgb(255,255,255)">        for(int i = 0; i< n ; i++){</span><br>
</div><div><pre style="text-align:-webkit-left;background-color:rgb(255,255,255)">s1 :                 a[i] = a[i] + x[i];
s2 :                 x[i] = x[i+1] + i*2 ;
        }

/**there is no dependence from s2 to s1/
so after distribution(it should be) :

        for(int i = 0; i< n ; i++)
s1:                a[i] = a[i] + x[i];

        for(int i = 0; i< n ; i++)
s2:                x[i] = x[i+1] + i*2 ;


but in llvm i couldn't able to find there is no dependency from s2 to s1.</pre><pre style="text-align:-webkit-left;background-color:rgb(255,255,255)">LoopDependenceAnalyis always gives there is a dependency from every load instructions to every store instructions.</pre>
</div><br>is there any other alternative to LoopDependencyAnalysis ?<div>thank you<br><div><br>......<br>Regards,<br>Shanmukha Rao<br>Compilers lab,<br>Indian Institute of Science, Bangalore.<br>
</div></div>