From: Hans Wennborg Date: Thu, 5 Mar 2015 03:24:49 +0000 (+0000) Subject: Revert r231324 "Remove the conditional addition of the execution dependency fixing" X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f082c5b27f37d06e03a2c91a431ca1ebcf9567e6;p=oota-llvm.git Revert r231324 "Remove the conditional addition of the execution dependency fixing" See PR22799. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231348 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMTargetMachine.cpp b/lib/Target/ARM/ARMTargetMachine.cpp index e3e6228206e..34f7f78154c 100644 --- a/lib/Target/ARM/ARMTargetMachine.cpp +++ b/lib/Target/ARM/ARMTargetMachine.cpp @@ -358,7 +358,9 @@ void ARMPassConfig::addPreRegAlloc() { void ARMPassConfig::addPreSched2() { if (getOptLevel() != CodeGenOpt::None) { addPass(createARMLoadStoreOptimizationPass()); - addPass(createExecutionDependencyFixPass(&ARM::DPRRegClass)); + + if (getARMSubtarget().hasNEON()) + addPass(createExecutionDependencyFixPass(&ARM::DPRRegClass)); } // Expand some pseudo instructions into multiple instructions to allow