clean up
authorAndrew Lenharth <andrewl@lenharth.org>
Sat, 5 Feb 2005 17:41:39 +0000 (17:41 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Sat, 5 Feb 2005 17:41:39 +0000 (17:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20051 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaISelPattern.cpp

index 2652eaaf7dd77a3a314044d16e22098681c1e856..bcfaae74fd6897bef64d6534e0584bcf7335b10a 100644 (file)
@@ -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;
           }
           }