[LLVMdev] Loop exit condition analysis

Hanfeng Qin hanfengtsin at gmail.com
Mon Dec 19 22:13:10 PST 2011


Hi all,
I am doing loop exit condition analysis. As the following sample code 
segments demonstrated,

....
int *c = &a;
while (*c == 0);
....

I want to decide which variables are related to ending this spin-loop. 
E.g., in above sample, c is the direct variable while a is an indirect 
one. Does LLVM provide any existing analysis tools or APIs I can leverage?
I am new to compiler optimization. Wish any body can give some suggestions.

Best,
Hanfeng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111220/73258d92/attachment.html>


More information about the llvm-dev mailing list