diff options
author | Dan Gohman <gohman@apple.com> | 2010-05-27 18:43:40 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-05-27 18:43:40 +0000 |
commit | dc53f1cb5ccbe554b0ce23bf26bae802763c3b10 (patch) | |
tree | 325bea0c878b9f83f5a888aae5f4447f3cf8d924 /llvm/lib/Target/X86/X86FastISel.cpp | |
parent | 9c84d4a8a0ab6d12dca3cc15120114fedb7219bf (diff) | |
download | bcm5719-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.cpp | 4 |
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; |