1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-03-22 10:36:10 +00:00

add createCFGSimplificationPass to ARMTargetMachine::addInstSelector

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31400 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2006-11-03 01:39:25 +00:00
parent 39c6d3aac1
commit 115bfcb574

@ -18,6 +18,7 @@
#include "llvm/Module.h"
#include "llvm/PassManager.h"
#include "llvm/Target/TargetMachineRegistry.h"
#include "llvm/Transforms/Scalar.h"
using namespace llvm;
namespace {
@ -51,6 +52,7 @@ unsigned ARMTargetMachine::getModuleMatchQuality(const Module &M) {
// Pass Pipeline Configuration
bool ARMTargetMachine::addInstSelector(FunctionPassManager &PM, bool Fast) {
PM.add(createCFGSimplificationPass());
PM.add(createARMISelDag(*this));
return false;
}