[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)
commit7662d50d102f6e093ed1920f2ca9b9cf08e5dcbc
treec66bd9dc534a55f651a02f171b43d68416f9a50a
parenta84a6c1e484e40a2b37c0f95cc9c88a466c078d7
[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

llvm-svn: 310152
llvm/lib/Target/X86/X86FastISel.cpp
llvm/lib/Target/X86/X86Subtarget.cpp
llvm/test/CodeGen/X86/dllimport-x86_64.ll
llvm/test/CodeGen/X86/dllimport.ll
llvm/test/CodeGen/X86/fast-isel-call-cleanup.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/fast-isel-x86.ll