summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDuraid Madina <duraid@octopus.com.au>2005-05-20 11:39:17 +0000
committerDuraid Madina <duraid@octopus.com.au>2005-05-20 11:39:17 +0000
commit3a5eb6189910db85122de74a2c666230c71a1632 (patch)
treed2dd978a06cc090787e1ce592838a576d1a84cdb /llvm
parent6e7355e6c165531167742743eae20ba29c005888 (diff)
downloadbcm5719-llvm-3a5eb6189910db85122de74a2c666230c71a1632.tar.gz
bcm5719-llvm-3a5eb6189910db85122de74a2c666230c71a1632.zip
re-enable direct calls, this should just be a performance boost
llvm-svn: 22148
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/IA64/IA64ISelPattern.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/Target/IA64/IA64ISelPattern.cpp b/llvm/lib/Target/IA64/IA64ISelPattern.cpp
index 1ea16cce8f4..2e34b36715f 100644
--- a/llvm/lib/Target/IA64/IA64ISelPattern.cpp
+++ b/llvm/lib/Target/IA64/IA64ISelPattern.cpp
@@ -2151,16 +2151,13 @@ pC = pA OR pB
}
}
- /* XXX we want to re-enable direct branches! crippling them now
- * to stress-test indirect branches.:
- //build the right kind of call
+ // build the right kind of call. if we can branch directly, do so:
if (GlobalAddressSDNode *GASD =
dyn_cast<GlobalAddressSDNode>(N.getOperand(1)))
{
BuildMI(BB, IA64::BRCALL, 1).addGlobalAddress(GASD->getGlobal(),true);
IA64Lowering.restoreGP_SP_RP(BB);
- }
- ^^^^^^^^^^^^^ we want this code one day XXX */
+ } else
if (ExternalSymbolSDNode *ESSDN =
dyn_cast<ExternalSymbolSDNode>(N.getOperand(1)))
{ // FIXME : currently need this case for correctness, to avoid
@@ -2169,7 +2166,9 @@ pC = pA OR pB
.addExternalSymbol(ESSDN->getSymbol(), true);
IA64Lowering.restoreGP_SP_RP(BB);
}
- else {
+ else { // otherwise we need to get the function descriptor
+ // load the branch target (function)'s entry point and
+ // GP, then branch
Tmp1 = SelectExpr(N.getOperand(1));
unsigned targetEntryPoint=MakeReg(MVT::i64);
OpenPOWER on IntegriCloud