[llvm-dev] How to check if a variable is updated inside a loop?
karan raj singh ranawat via llvm-dev
llvm-dev at lists.llvm.org
Thu Dec 16 20:14:21 PST 2021
If there is a variable outside a loop, and if it is used inside a loop. How
can I check in the LLVM analysis if the variable is getting modified inside
a loop iteration.
Ex: int i = 0;
for(;;i++){}When there is i++, the load instruction updates existing i. How
can I identify if the load instruction is part of a loop.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20211216/5313d94a/attachment.html>
More information about the llvm-dev
mailing list