[PATCH] D17433: [ARM] fix initialization of PredictableSelectIsExpensive

Junmo Park via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 23 02:01:31 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL261623: [ARM] fix initialization of PredictableSelectIsExpensive (authored by flyingforyou).

Changed prior to commit:
  http://reviews.llvm.org/D17433?vs=48446&id=48795#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D17433

Files:
  llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp

Index: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
===================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
@@ -1042,7 +1042,7 @@
   setMinStackArgumentAlignment(4);
 
   // Prefer likely predicted branches to selects on out-of-order cores.
-  PredictableSelectIsExpensive = Subtarget->isLikeA9();
+  PredictableSelectIsExpensive = Subtarget->getSchedModel().isOutOfOrder();
 
   setMinFunctionAlignment(Subtarget->isThumb() ? 1 : 2);
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17433.48795.patch
Type: text/x-patch
Size: 551 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160223/9e948e77/attachment.bin>


More information about the llvm-commits mailing list