diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-01 03:57:05 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-01 03:57:05 +0000 |
commit | c6f00e701e744fdf73508d47ff0cc75817ba8474 (patch) | |
tree | 34d28c162252600f70692f910d784af08c45aea4 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | ffda6bac113d4c079b534b1bfa7aea5498ee3e83 (diff) | |
download | external_llvm-c6f00e701e744fdf73508d47ff0cc75817ba8474.zip external_llvm-c6f00e701e744fdf73508d47ff0cc75817ba8474.tar.gz external_llvm-c6f00e701e744fdf73508d47ff0cc75817ba8474.tar.bz2 |
Use FuncInfo's isExportedInst accessor method instead of
doing the work manually.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107384 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 7e78bf1..073e296 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -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. |