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 e3e6228206e6799269a26e7255c76e8918b2a469..34f7f78154c262554c0e4a2dcd8f16a2118ae544 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