enable the gep isel opt

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24910 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-12-21 19:36:36 +00:00
parent 524a1313da
commit 9797c5cc3e

View File

@ -40,10 +40,6 @@
#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;