OSDN Git Service

[X86] Teach fastisel to select calls to dllimport functions
authorReid Kleckner <rnk@google.com>
Sat, 5 Aug 2017 00:10:43 +0000 (00:10 +0000)
committerReid Kleckner <rnk@google.com>
Sat, 5 Aug 2017 00:10:43 +0000 (00:10 +0000)
commit2b6fdd5413ea44bbcbb8f0c2f7a737d1e9283abb
treebec717b1542f8816a6d31c925c7c12c3109fb6fb
parentdea6df776523228bd7fd5178a5f44fb6d4cd7415
[X86] Teach fastisel to select calls to dllimport functions

Summary:
Direct calls to dllimport functions are very common Windows. We should
add them to the -O0 fast path.

Reviewers: rafael

Subscribers: llvm-commits, hiraditya

Differential Revision: https://reviews.llvm.org/D36197

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310152 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FastISel.cpp
lib/Target/X86/X86Subtarget.cpp
test/CodeGen/X86/dllimport-x86_64.ll
test/CodeGen/X86/dllimport.ll
test/CodeGen/X86/fast-isel-call-cleanup.ll [new file with mode: 0644]
test/CodeGen/X86/fast-isel-x86.ll