Revert r121886. DecomposeGEPExpression needs to be kept
authorDan Gohman <gohman@apple.com>
Wed, 15 Dec 2010 20:39:25 +0000 (20:39 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 15 Dec 2010 20:39:25 +0000 (20:39 +0000)
in sync.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121892 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ValueTracking.cpp

index 75062953cbac1a173ca9fc52629c105d3752251c..ae253abc5d471282577cbebb40c90a7317b6135b 100644 (file)
@@ -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!");