<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div style="RIGHT: auto">Hi,</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">I have read through the discussion on, using LoopInfo in functionPass and LoopPass and ModulePass, but I think I have a different situation.</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">I have to run an optimization as "CallGraphSCC Pass". In this pass, I can traverse through the function and basic block from SCC, but my requirement is to have loop Information as well in this.</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">I need information about whether an instruction (in a basic block) resides in a loop and what is the corresponding loop depth? (I have seen posts on how to get this using "getAnalysis<LoopInfo>", if my pass is a Function or a loop Pass).</div>
<div style="RIGHT: auto"><VAR id=yui-ie-cursor></VAR> </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">Thanks and Regards,</div>
<div style="RIGHT: auto">Pankaj</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto"> </div></div></body></html>