[llvm-commits] [llvm] r115350 - /llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
Eric Christopher
echristo at apple.com
Fri Oct 1 14:33:12 PDT 2010
Author: echristo
Date: Fri Oct 1 16:33:12 2010
New Revision: 115350
URL: http://llvm.org/viewvc/llvm-project?rev=115350&view=rev
Log:
Direct calls only for arm fast isel for now.
Modified:
llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFastISel.cpp?rev=115350&r1=115349&r2=115350&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFastISel.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFastISel.cpp Fri Oct 1 16:33:12 2010
@@ -1291,9 +1291,10 @@
// Can't handle inline asm or worry about intrinsics yet.
if (isa<InlineAsm>(Callee) || isa<IntrinsicInst>(CI)) return false;
- // Only handle global variable Callees
+ // Only handle global variable Callees that are direct calls.
const GlobalValue *GV = dyn_cast<GlobalValue>(Callee);
- if (!GV) return false;
+ if (!GV || Subtarget->GVIsIndirectSymbol(GV, TM.getRelocationModel()))
+ return false;
// Check the calling convention.
ImmutableCallSite CS(CI);
More information about the llvm-commits
mailing list