mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
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:
parent
524a1313da
commit
9797c5cc3e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user