search for: dependenceanalysiswrapperpass

Displaying 4 results from an estimated 4 matches for "dependenceanalysiswrapperpass".

2017 Jun 21
2
A bug in DependenceAnalysis?
Hi Philip, Thanks for checking! I'm running my own Foo pass that registers DependenceAnalysisWrapperPass as a prerequisite and then I run it like so: opt -load libfoo.so -foo example.bc This is LLVM 3.9. Cheers, - Stan On Wed, Jun 21, 2017 at 5:40 PM, Philip Pfaffe <philip.pfaffe at gmail.com> wrote: > Hi Stan, > > in both cases I get a consistent anti result. Can you show us the...
2017 Jun 21
2
A bug in DependenceAnalysis?
Hello llvm-dev, I'm running a pass that uses the result of llvm::DependenceAnalysisWrapperPass to compute the dependencies between all instructions of a loop. I have the following two examples of code I wish to analyse: example A: ``` void move_one(int *A, unsigned n) { for (unsigned i = 0; i < n-1; ++i) { A[i] = A[i + 1]; } } ``` and example B: ``` void move_one_alt(int *A, uns...
2017 Jun 22
2
A bug in DependenceAnalysis?
...h llvm 4.0 > or, better even, trunk? > > Cheers, > Philip > > 2017-06-21 18:58 GMT+02:00 Stanislav Manilov <stanislav.manilov at gmail.com> > : > >> Hi Philip, >> >> Thanks for checking! >> >> I'm running my own Foo pass that registers DependenceAnalysisWrapperPass >> as a prerequisite and then I run it like so: >> >> opt -load libfoo.so -foo example.bc >> >> This is LLVM 3.9. >> >> Cheers, >> - Stan >> >> On Wed, Jun 21, 2017 at 5:40 PM, Philip Pfaffe <philip.pfaffe at gmail.com> >> wro...
2017 Aug 03
2
Dependence analysis - missing loop-carried dependencies?
...5 %7 = load i32, i32* %i, align 4 %8 = add nsw i32 %7, 1 store i32 %8, i32* %i, align 4 br label %2 ; <label>:9: ; preds = %2 ret i32 0 } bool runOnFunction(Function &F) override { DependenceInfo *depinfo = &getAnalysis<DependenceAnalysisWrapperPass>().getDI(); // check dependencies between each pair of instructions for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; I++) { for (inst_iterator J = I; J != E; J++) { std::unique_ptr<Dependence> infoPtr; infoPtr = depinfo->depends(&*I, &...