Use FuncInfo's isExportedInst accessor method instead of
authorDan Gohman <gohman@apple.com>
Thu, 1 Jul 2010 03:57:05 +0000 (03:57 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 1 Jul 2010 03:57:05 +0000 (03:57 +0000)
doing the work manually.

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

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index 7e78bf1b7ad44ddeda9b6df2eafcd7da17257f37..073e2964d2082b678f0a95289146c8456a964c7c 100644 (file)
@@ -712,7 +712,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) {
         // 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.