Remove the conditional addition of the execution dependency fixing
authorEric Christopher <echristo@gmail.com>
Thu, 5 Mar 2015 00:28:55 +0000 (00:28 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 5 Mar 2015 00:28:55 +0000 (00:28 +0000)
pass from the ARM backend as the pass itself will detect any use
of the appropriate register class.

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

lib/Target/ARM/ARMTargetMachine.cpp

index 34f7f78154c262554c0e4a2dcd8f16a2118ae544..e3e6228206e6799269a26e7255c76e8918b2a469 100644 (file)
@@ -358,9 +358,7 @@ void ARMPassConfig::addPreRegAlloc() {
 void ARMPassConfig::addPreSched2() {
   if (getOptLevel() != CodeGenOpt::None) {
     addPass(createARMLoadStoreOptimizationPass());
-
-    if (getARMSubtarget().hasNEON())
-      addPass(createExecutionDependencyFixPass(&ARM::DPRRegClass));
+    addPass(createExecutionDependencyFixPass(&ARM::DPRRegClass));
   }
 
   // Expand some pseudo instructions into multiple instructions to allow