OSDN Git Service

MemoryDependenceAnalysis attempts to find the first memory dependency for function...
authorNadav Rotem <nrotem@apple.com>
Mon, 13 Aug 2012 23:03:43 +0000 (23:03 +0000)
committerNadav Rotem <nrotem@apple.com>
Mon, 13 Aug 2012 23:03:43 +0000 (23:03 +0000)
commit8dff60e96a0b3044628511b0e43a59788de56b9d
tree630d2132d7d822c855f54735a6fdf0e75e1dad05
parent6d2986cd0374b86e23fe60a57b40ae01d057ce3b
MemoryDependenceAnalysis attempts to find the first memory dependency for function calls.
Currently, if GetLocation reports that it did not find a valid pointer (this is the case for volatile load/stores),
we ignore the result. This patch adds code to handle the cases where we did not obtain a valid pointer.

rdar://11872864  PR12899

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161802 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/MemoryDependenceAnalysis.cpp
test/Analysis/GlobalsModRef/volatile-instrs.ll [new file with mode: 0644]