enable the gep isel opt
authorChris Lattner <sabre@nondot.org>
Wed, 21 Dec 2005 19:36:36 +0000 (19:36 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 21 Dec 2005 19:36:36 +0000 (19:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24910 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index d75e5013d55ddd460f6c2ca30a4b368d6d4199fe..103a00a25c2507f50ba85836ff72dc5e78d558ca 100644 (file)
 #include <iostream>
 using namespace llvm;
 
-static cl::opt<bool>
-GEPISelTest("enable-gep-isel-opt", cl::Hidden,
-            cl::desc("temporary for testing"));
-
 #ifndef NDEBUG
 static cl::opt<bool>
 ViewDAGs("view-isel-dags", cl::Hidden,
@@ -1315,8 +1311,6 @@ static Value *InsertGEPComputeCode(Value *&V, BasicBlock *BB, Instruction *GEPI,
 /// indices into blocks that use it.
 static void OptimizeGEPExpression(GetElementPtrInst *GEPI,
                                   const TargetData &TD) {
-  if (!GEPISelTest) return;
-  
   // If this GEP is only used inside the block it is defined in, there is no
   // need to rewrite it.
   bool isUsedOutsideDefBB = false;