<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="sans-serif">Hi all,<br>
I am doing loop exit condition analysis. As the following sample
code segments demonstrated,<br>
<br>
....<br>
int *c = &a;<br>
while (*c == 0);<br>
....<br>
<br>
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?<br>
I am new to compiler optimization. Wish any body can give some
suggestions.<br>
<br>
Best,<br>
Hanfeng<br>
</font>
</body>
</html>