aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-12-15 20:39:25 +0000
committerDan Gohman <gohman@apple.com>2010-12-15 20:39:25 +0000
commitd02b65982ec7c3fa516e8a33a0cf9c137c8085a6 (patch)
tree34c1050a27540a6326f066b97d9f7a293ed5f6e7 /llvm/lib/Analysis/ValueTracking.cpp
parent0c558b20807fdfcb3c346501caefa849ceebcc44 (diff)
downloadllvm-d02b65982ec7c3fa516e8a33a0cf9c137c8085a6.zip
llvm-d02b65982ec7c3fa516e8a33a0cf9c137c8085a6.tar.gz
llvm-d02b65982ec7c3fa516e8a33a0cf9c137c8085a6.tar.bz2
Revert r121886. DecomposeGEPExpression needs to be kept
in sync. llvm-svn: 121892
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 7506295..ae253ab 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -1441,14 +1441,6 @@ Value *llvm::GetUnderlyingObject(Value *V, unsigned MaxLookup) {
return V;
V = GA->getAliasee();
} else {
- // See if InstructionSimplify knows any relevant tricks.
- if (Instruction *I = dyn_cast<Instruction>(V))
- // TODO: Aquire TargetData and DominatorTree and use them.
- if (Value *Simplified = SimplifyInstruction(I, 0, 0)) {
- V = Simplified;
- continue;
- }
-
return V;
}
assert(V->getType()->isPointerTy() && "Unexpected operand type!");