From 4f6b802044c6bd1944109012d1d40ae5918580d0 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 15 Dec 2010 20:39:25 +0000 Subject: [PATCH] Revert r121886. DecomposeGEPExpression needs to be kept in sync. llvm-svn: 121892 --- lib/Analysis/ValueTracking.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/Analysis/ValueTracking.cpp b/lib/Analysis/ValueTracking.cpp index 75062953cba..ae253abc5d4 100644 --- a/lib/Analysis/ValueTracking.cpp +++ b/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(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!");