Revert r231324 "Remove the conditional addition of the execution dependency fixing"
authorHans Wennborg <hans@hanshq.net>
Thu, 5 Mar 2015 03:24:49 +0000 (03:24 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 5 Mar 2015 03:24:49 +0000 (03:24 +0000)
See PR22799.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231348 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMTargetMachine.cpp

index e3e6228..34f7f78 100644 (file)
@@ -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