summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit7be9854594831d4788431e1f77c4534c632038c6 (patch)
tree9ce4f7efa9a6bcd7d35e59ad2732bdce83238150 /llvm/lib/Target/Alpha/AlphaISelPattern.cpp
parentea9224a69ae5b920c2f68f351d9f260f230b2e8a (diff)
downloadbcm5719-llvm-7be9854594831d4788431e1f77c4534c632038c6.tar.gz
bcm5719-llvm-7be9854594831d4788431e1f77c4534c632038c6.zip
clean up
llvm-svn: 20051
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r--llvm/lib/Target/Alpha/AlphaISelPattern.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
index 2652eaaf7dd..bcfaae74fd6 100644
--- a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
+++ b/llvm/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;
}
}
OpenPOWER on IntegriCloud