[llvm-dev] [LAI] Question about getDependences

Dangeti Tharun kumar via llvm-dev llvm-dev at lists.llvm.org
Thu Feb 18 10:17:26 PST 2021


I am using LAI->getDependences(), It returns a vector of Dependence objects
in a Loop.
If the loop is un-analyzable or parallel, an empty list is returned.

*for example:*

*Loop A:*
for (int i = 0; i < N; i ++) {
        a[i] = c[i] + d[i];
        b[i] = c[i] * d[i];
*Loop B:*
for (int i = 0; i < N; i++) {
     a[b[i]] = c[i] + d[i];
     c[i] = c[i  - 1] + 1;

Loop A is parallel and Loop B has non-simple dependences(LAI bails out) for
both the cases we get an empty set of dependences.

Is there an API that can tell if LAI was successful in dependence



Disclaimer:- This footer text is to convey that this email is sent by one 
of the users of IITH. So, do not mark it as SPAM.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210218/3181863d/attachment.html>

More information about the llvm-dev mailing list