[llvm] r231348 - Revert r231324 "Remove the conditional addition of the execution dependency fixing"

Hans Wennborg hans at hanshq.net
Wed Mar 4 19:24:50 PST 2015


Author: hans
Date: Wed Mar  4 21:24:49 2015
New Revision: 231348

URL: http://llvm.org/viewvc/llvm-project?rev=231348&view=rev
Log:
Revert r231324 "Remove the conditional addition of the execution dependency fixing"

See PR22799.

Modified:
    llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp?rev=231348&r1=231347&r2=231348&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp Wed Mar  4 21:24:49 2015
@@ -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





More information about the llvm-commits mailing list