[llvm-commits] [llvm] r107384 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Dan Gohman gohman at apple.com
Wed Jun 30 20:57:05 PDT 2010


Author: djg
Date: Wed Jun 30 22:57:05 2010
New Revision: 107384

URL: http://llvm.org/viewvc/llvm-project?rev=107384&view=rev
Log:
Use FuncInfo's isExportedInst accessor method instead of
doing the work manually.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp?rev=107384&r1=107383&r2=107384&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Wed Jun 30 22:57:05 2010
@@ -712,7 +712,7 @@
         // Defer instructions with no side effects; they'll be emitted
         // on-demand later.
         if (BI->isSafeToSpeculativelyExecute() &&
-            !FuncInfo->ValueMap.count(BI))
+            !FuncInfo->isExportedInst(BI))
           continue;
 
         // Try to select the instruction with FastISel.





More information about the llvm-commits mailing list