[llvm] r272905 - Refactor duplicated code. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 16 08:44:06 PDT 2016
Author: rafael
Date: Thu Jun 16 10:44:06 2016
New Revision: 272905
URL: http://llvm.org/viewvc/llvm-project?rev=272905&view=rev
Log:
Refactor duplicated code. NFC.
Modified:
llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=272905&r1=272904&r2=272905&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Thu Jun 16 10:44:06 2016
@@ -1807,7 +1807,7 @@ ARMTargetLowering::LowerCall(TargetLower
!shouldAssumeDSOLocal(RM, TargetTriple, *Mod, GV) &&
Subtarget->isTargetMachO();
- bool isARMFunc = false;
+ bool isARMFunc = !Subtarget->isThumb() || (isStub && !Subtarget->isMClass());
bool isLocalARMFunc = false;
ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>();
auto PtrVt = getPointerTy(DAG.getDataLayout());
@@ -1852,7 +1852,6 @@ ARMTargetLowering::LowerCall(TargetLower
isDirect = true;
bool isDef = GV->isStrongDefinitionForLinker();
- isARMFunc = !Subtarget->isThumb() || (isStub && !Subtarget->isMClass());
// ARM call to a local ARM function is predicable.
isLocalARMFunc = !Subtarget->isThumb() && (isDef || !ARMInterworking);
// tBX takes a register source operand.
@@ -1888,7 +1887,6 @@ ARMTargetLowering::LowerCall(TargetLower
}
} else if (ExternalSymbolSDNode *S = dyn_cast<ExternalSymbolSDNode>(Callee)) {
isDirect = true;
- isARMFunc = !Subtarget->isThumb() || (isStub && !Subtarget->isMClass());
// tBX takes a register source operand.
const char *Sym = S->getSymbol();
if (isARMFunc && Subtarget->isThumb1Only() && !Subtarget->hasV5TOps()) {
More information about the llvm-commits
mailing list