[LLVMdev] Loop exit condition analysis
hanfengtsin at gmail.com
Mon Dec 19 22:13:10 PST 2011
I am doing loop exit condition analysis. As the following sample code
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev