[llvm-commits] [llvm] r121892 - /llvm/trunk/lib/Analysis/ValueTracking.cpp

Dan Gohman gohman at apple.com
Wed Dec 15 12:39:25 PST 2010


Author: djg
Date: Wed Dec 15 14:39:25 2010
New Revision: 121892

URL: http://llvm.org/viewvc/llvm-project?rev=121892&view=rev
Log:
Revert r121886. DecomposeGEPExpression needs to be kept
in sync.

Modified:
    llvm/trunk/lib/Analysis/ValueTracking.cpp

Modified: llvm/trunk/lib/Analysis/ValueTracking.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ValueTracking.cpp?rev=121892&r1=121891&r2=121892&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ValueTracking.cpp (original)
+++ llvm/trunk/lib/Analysis/ValueTracking.cpp Wed Dec 15 14:39:25 2010
@@ -1441,14 +1441,6 @@
         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!");





More information about the llvm-commits mailing list