summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/LazyValueInfo.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-12-15 20:02:24 +0000
committerDan Gohman <gohman@apple.com>2010-12-15 20:02:24 +0000
commita4fcd2418dc7f0b425a3c1b4fb873fbe4e2e7f72 (patch)
tree962968e998866ffb0bf159c77c4f85e4bc509f3a /llvm/lib/Analysis/LazyValueInfo.cpp
parenta51174af72e0ff8ccff9e5fc04b11a4c44f4d99c (diff)
downloadbcm5719-llvm-a4fcd2418dc7f0b425a3c1b4fb873fbe4e2e7f72.tar.gz
bcm5719-llvm-a4fcd2418dc7f0b425a3c1b4fb873fbe4e2e7f72.zip
Move Value::getUnderlyingObject to be a standalone
function so that it can live in Analysis instead of VMCore. llvm-svn: 121885
Diffstat (limited to 'llvm/lib/Analysis/LazyValueInfo.cpp')
-rw-r--r--llvm/lib/Analysis/LazyValueInfo.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LazyValueInfo.cpp b/llvm/lib/Analysis/LazyValueInfo.cpp
index d73c504f14d..eab4ca06f07 100644
--- a/llvm/lib/Analysis/LazyValueInfo.cpp
+++ b/llvm/lib/Analysis/LazyValueInfo.cpp
@@ -14,6 +14,7 @@
#define DEBUG_TYPE "lazy-value-info"
#include "llvm/Analysis/LazyValueInfo.h"
+#include "llvm/Analysis/ValueTracking.h"
#include "llvm/Constants.h"
#include "llvm/Instructions.h"
#include "llvm/Analysis/ConstantFolding.h"
@@ -414,8 +415,8 @@ LVILatticeVal LazyValueInfoCache::getBlockValue(Value *Val, BasicBlock *BB) {
for (BasicBlock::iterator BI = BB->begin(), BE = BB->end();BI != BE;++BI){
LoadInst *L = dyn_cast<LoadInst>(BI);
if (L && L->getPointerAddressSpace() == 0 &&
- L->getPointerOperand()->getUnderlyingObject() ==
- Val->getUnderlyingObject()) {
+ GetUnderlyingObject(L->getPointerOperand()) ==
+ GetUnderlyingObject(Val)) {
NotNull = true;
break;
}
OpenPOWER on IntegriCloud