[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelPattern.cpp

Andrew Lenharth alenhar2 at cs.uiuc.edu
Sat Feb 5 09:41:54 PST 2005



Changes in directory llvm/lib/Target/Alpha:

AlphaISelPattern.cpp updated: 1.34 -> 1.35
---
Log message:

clean up

---
Diffs of the changes:  (+2 -5)

 AlphaISelPattern.cpp |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)


Index: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.34 llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.35
--- llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.34	Sat Feb  5 10:41:03 2005
+++ llvm/lib/Target/Alpha/AlphaISelPattern.cpp	Sat Feb  5 11:41:39 2005
@@ -383,10 +383,8 @@
         }
       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 @@
             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;
           }
           }






More information about the llvm-commits mailing list