<div>Hello,</div><div> I'm trying to find if the access within a loop body is using the loop induction variable, and to get the start and end indices of the loop.</div><div> </div><div>for(int i = start; i < end; i++) { A[i] = 0; }</div>
<div> </div><div>Let's say, I want to replace this with a function call 'zero(A,start, end)'</div><div> </div><div>How can I get the Value for start and end, and see if the index is same as loop induction variable? Assume loop is in loopsimplify form.</div>
<div>I browsed many header files, but could't figure out.</div><div> </div><div>Thanks in advance!</div><div>madan</div>