[REFACTOR] Push logic from MemDepPrinter into getNonLocalPointerDependency
authorPhilip Reames <listmail@philipreames.com>
Fri, 9 Jan 2015 00:26:45 +0000 (00:26 +0000)
committerPhilip Reames <listmail@philipreames.com>
Fri, 9 Jan 2015 00:26:45 +0000 (00:26 +0000)
commitce0e12f0b4f304ba2d008c4facd302f127d34b2e
treeee6b685d40f3c24c836573a865ef405abac58109
parentd4ca466ed602b47ab47fde6c78d640d80d2b1e7b
[REFACTOR] Push logic from MemDepPrinter into getNonLocalPointerDependency

Previously, MemDepPrinter handled volatile and unordered accesses without involving MemoryDependencyAnalysis.  By making a slight tweak to the documented interface - which is respected by both callers - we can move this responsibility to MDA for the benefit of any future callers.  This is basically just cleanup.

In the future, we may decide to extend MDA's non local dependency analysis to return useful results for ordered or volatile loads.  I believe (but have not really checked in detail) that local dependency analyis does get useful results for ordered, but not volatile, loads.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225483 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/MemoryDependenceAnalysis.h
lib/Analysis/MemDepPrinter.cpp
lib/Analysis/MemoryDependenceAnalysis.cpp