From 97127a139132cef1678ff5abc09565181ff879af Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Sat, 5 Feb 2005 17:41:39 +0000 Subject: [PATCH] clean up git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20051 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Alpha/AlphaISelPattern.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp index 2652eaaf7dd..bcfaae74fd6 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(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; } } -- 2.34.1