From: Dan Gohman Date: Wed, 15 Dec 2010 20:39:25 +0000 (+0000) Subject: Revert r121886. DecomposeGEPExpression needs to be kept X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3928d13808b555139728268930ecffd574430769;p=oota-llvm.git Revert r121886. DecomposeGEPExpression needs to be kept in sync. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121892 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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!");