[PATCH] LoopDependenceAnalysis based on a FunctionPass


I found that LDA implemented on a function pass is much more useful than
LDA based on a loop pass. In addition, I want to have an analysis result
for the outer loops also, even if it would be a very conservative one.
Can I commit my modified version of LDA? If you think it is worth to keep
current LDA, what about adding a LDA based on function pass to the
repository with some other name (e.g. LDAFP or something)?


LoopDependenceAnalysis.diff (12.1 KB)