aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-04-16 02:33:41 +0000
committerDevang Patel <dpatel@apple.com>2009-04-16 02:33:41 +0000
commit16f2ffd1580a168a7fdd78bf48b26f0995e1c109 (patch)
treef298ec4631ad81e0a6fd30340e043e99797070e1 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parent390f3ace34855a3d4c9e0adf468976375f8c6dc1 (diff)
In -fast mode do what FastISel does.
This code could use some refactoring help! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69254 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 7343b838b1..49ff4f2a5d 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -296,6 +296,12 @@ bool SelectionDAGISel::runOnFunction(Function &Fn) {
assert((!EnableFastISelAbort || EnableFastISel) &&
"-fast-isel-abort requires -fast-isel");
+ // Do not codegen any 'available_externally' functions at all, they have
+ // definitions outside the translation unit.
+ if (Fn.hasAvailableExternallyLinkage())
+ return false;
+
+
// Get alias analysis for load/store combining.
AA = &getAnalysis<AliasAnalysis>();