<div dir="ltr">Ur?<div><br></div><div>-eric</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 26, 2013 at 3:15 PM, Michael Ilseman <span dir="ltr"><<a href="mailto:milseman@apple.com" target="_blank">milseman@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: milseman<br>
Date: Tue Feb 26 17:15:23 2013<br>
New Revision: 176136<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=176136&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=176136&view=rev</a><br>
Log:<br>
Have a way for a target to opt-out of target-independent fast isel<br>
<br>
Modified:<br>
    llvm/trunk/include/llvm/CodeGen/FastISel.h<br>
    llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp<br>
<br>
Modified: llvm/trunk/include/llvm/CodeGen/FastISel.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/FastISel.h?rev=176136&r1=176135&r2=176136&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/FastISel.h?rev=176136&r1=176135&r2=176136&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/include/llvm/CodeGen/FastISel.h (original)<br>
+++ llvm/trunk/include/llvm/CodeGen/FastISel.h Tue Feb 26 17:15:23 2013<br>
@@ -372,6 +372,11 @@ protected:<br>
     return 0;<br>
   }<br>
<br>
+  /// Whether we should skip target-independent fast-isel<br>
+  virtual bool SkipTargetIndependentFastISel() {<br>
+    return false;<br>
+  }<br>
+<br>
 private:<br>
   bool SelectBinaryOp(const User *I, unsigned ISDOpcode);<br>
<br>
<br>
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp?rev=176136&r1=176135&r2=176136&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp?rev=176136&r1=176135&r2=176136&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp (original)<br>
+++ llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp Tue Feb 26 17:15:23 2013<br>
@@ -822,7 +822,7 @@ FastISel::SelectInstruction(const Instru<br>
   }<br>
<br>
   // First, try doing target-independent selection.<br>
-  if (SelectOperator(I, I->getOpcode())) {<br>
+  if (!SkipTargetIndependentFastISel() && SelectOperator(I, I->getOpcode())) {<br>
     ++NumFastIselSuccessIndependent;<br>
     DL = DebugLoc();<br>
     return true;<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>