diff options
author | Bob Wilson <bob.wilson@apple.com> | 2012-08-03 04:06:28 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2012-08-03 04:06:28 +0000 |
commit | 3e6fa462f3c617ca8202162da2a3990c97b9ec36 (patch) | |
tree | 16f711d449010b803e92d0d7eae2d6e56b727956 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | c740e3f0d1ca9690100160ed2708d97d3c6562f0 (diff) | |
download | bcm5719-llvm-3e6fa462f3c617ca8202162da2a3990c97b9ec36.tar.gz bcm5719-llvm-3e6fa462f3c617ca8202162da2a3990c97b9ec36.zip |
Fall back to selection DAG isel for calls to builtin functions.
Fast isel doesn't currently have support for translating builtin function
calls to target instructions. For embedded environments where the library
functions are not available, this is a matter of correctness and not
just optimization. Most of this patch is just arranging to make the
TargetLibraryInfo available in fast isel. <rdar://problem/12008746>
llvm-svn: 161232
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 287c679f975..4e5e3bae62c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -979,7 +979,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) { // Initialize the Fast-ISel state, if needed. FastISel *FastIS = 0; if (TM.Options.EnableFastISel) - FastIS = TLI.createFastISel(*FuncInfo); + FastIS = TLI.createFastISel(*FuncInfo, LibInfo); // Iterate over all basic blocks in the function. ReversePostOrderTraversal<const Function*> RPOT(&Fn); |