aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Alpha/AlphaISelPattern.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-02-05 17:41:39 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-02-05 17:41:39 +0000
commit97127a139132cef1678ff5abc09565181ff879af (patch)
tree0025cb5c11b2804568656351b82f2bb355bc9019 /lib/Target/Alpha/AlphaISelPattern.cpp
parentd4bdd548fc64b3a173400c11dc2cdbc4b2484ac5 (diff)
clean up
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20051 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r--lib/Target/Alpha/AlphaISelPattern.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp
index 2652eaaf7d..bcfaae74fd 100644
--- a/lib/Target/Alpha/AlphaISelPattern.cpp
+++ b/lib/Target/Alpha/AlphaISelPattern.cpp
@@ -383,10 +383,8 @@ unsigned ISel::SelectExprFP(SDOperand N, unsigned Result)
}
else if (ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(Address)) {
AlphaLowering.restoreGP(BB);
- if (DestType == MVT::f64) {
- BuildMI(BB, Alpha::LDT_SYM, 1, Result).addConstantPoolIndex(CP->getIndex());
- } else {
- BuildMI(BB, Alpha::LDS_SYM, 1, Result).addConstantPoolIndex(CP->getIndex());
+ Opc = DestType == MVT::f64 ? Alpha::LDT_SYM : Alpha::LDS_SYM;
+ BuildMI(BB, Opc, 1, Result).addConstantPoolIndex(CP->getIndex());
}
}
else
@@ -846,7 +844,6 @@ unsigned ISel::SelectExpr(SDOperand N) {
BuildMI(BB, Alpha::CMPEQ, 2, Tmp3).addReg(Tmp1).addReg(Tmp2);
//and invert
BuildMI(BB, Alpha::CMPEQ, 2, Result).addReg(Alpha::R31).addReg(Tmp3);
- //BuildMI(BB,Alpha::ORNOT, 2, Result).addReg(Alpha::R31).addReg(Tmp3);
return Result;
}
}