From: Evan Cheng Date: Mon, 22 Jan 2007 19:40:10 +0000 (+0000) Subject: Use bl to call Thumb fuctions directly. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2576f136458bda873208399e4c8a5e21ee14b362;p=oota-llvm.git Use bl to call Thumb fuctions directly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33433 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 0fb7e255506..031cd0a2f55 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -483,7 +483,7 @@ SDOperand ARMTargetLowering::LowerCALL(SDOperand Op, SelectionDAG &DAG) { getTargetMachine().getRelocationModel() != Reloc::Static; isARMFunc = !Subtarget->isThumb() || isStub; // Wrap it since tBX takes a register source operand. - if (!Subtarget->hasV5TOps() && Subtarget->isThumb()) + if (isARMFunc && Subtarget->isThumb() && !Subtarget->hasV5TOps()) Callee = DAG.getNode(ARMISD::WrapperCall, MVT::i32, Callee); }