diff --git a/lib/Target/ARM/ARMTargetMachine.cpp b/lib/Target/ARM/ARMTargetMachine.cpp index 4328ca8465a..a4c145b0ea7 100644 --- a/lib/Target/ARM/ARMTargetMachine.cpp +++ b/lib/Target/ARM/ARMTargetMachine.cpp @@ -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; }