[llvm-dev] Memory Dependency Analysis

Juan Manuel Martinez Caamaño via llvm-dev llvm-dev at lists.llvm.org
Wed Nov 16 05:20:10 PST 2016

Hello all,
I'm using the *DependenceAnalysisWrapperPass* to compute memory
dependencies between instructions. However, for the following code, it
finds no dependencies at all.
Is this Pass working?

define i32 @foo(i32 %a, float %b) {
  %1 = alloca i32, align 4
  store i32 %a, i32* %1, align 4
  %2 = load i32, i32* %1, align 4
  ret i32 %2

I also noticed that there is a *MemoryDependenceAnalysis* Pass. Which one
should I use?


Juan Manuel Martinez Caamaño
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161116/d2d9df1b/attachment.html>

More information about the llvm-dev mailing list