#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,
/// 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;