summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FastISel.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-27 18:43:40 +0000
committerDan Gohman <gohman@apple.com>2010-05-27 18:43:40 +0000
commitdc53f1cb5ccbe554b0ce23bf26bae802763c3b10 (patch)
tree325bea0c878b9f83f5a888aae5f4447f3cf8d924 /llvm/lib/Target/X86/X86FastISel.cpp
parent9c84d4a8a0ab6d12dca3cc15120114fedb7219bf (diff)
downloadbcm5719-llvm-dc53f1cb5ccbe554b0ce23bf26bae802763c3b10.tar.gz
bcm5719-llvm-dc53f1cb5ccbe554b0ce23bf26bae802763c3b10.zip
FastISel doesn't yet handle callee-pop functions.
To support this, move IsCalleePop from X86ISelLowering to X86Subtarget. llvm-svn: 104866
Diffstat (limited to 'llvm/lib/Target/X86/X86FastISel.cpp')
-rw-r--r--llvm/lib/Target/X86/X86FastISel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp
index 1bc5eb75d75..33a1919cce6 100644
--- a/llvm/lib/Target/X86/X86FastISel.cpp
+++ b/llvm/lib/Target/X86/X86FastISel.cpp
@@ -1314,6 +1314,10 @@ bool X86FastISel::X86SelectCall(const Instruction *I) {
if (FTy->isVarArg())
return false;
+ // Fast-isel doesn't know about callee-pop yet.
+ if (Subtarget->IsCalleePop(FTy->isVarArg(), CC))
+ return false;
+
// Handle *simple* calls for now.
const Type *RetTy = CS.getType();
EVT RetVT;
OpenPOWER on IntegriCloud