Remove some redundant checks, add a couple of new ones. This allows us to
[oota-llvm.git] / lib / Target / Alpha / AlphaInstrInfo.cpp
index 3ca0ebd42a5ba49d5a124a2ec3a476135506f803..e891a0156eed87216ad7dd5c549f63da2a9d879d 100644 (file)
@@ -1,4 +1,4 @@
-//===- AlphaInstrInfo.cpp - Alpha Instruction Information ---*- C++ -*-===//
+//===- AlphaInstrInfo.cpp - Alpha Instruction Information -------*- C++ -*-===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
@@ -25,9 +25,8 @@ AlphaInstrInfo::AlphaInstrInfo()
 bool AlphaInstrInfo::isMoveInstr(const MachineInstr& MI,
                                  unsigned& sourceReg,
                                  unsigned& destReg) const {
-  //assert(0 && "TODO");
   MachineOpCode oc = MI.getOpcode();
-  if (oc == Alpha::BIS) {  // or r1, r2, r2
+  if (oc == Alpha::BIS || oc == Alpha::CPYS) {  // or r1, r2, r2 // cpys r1 r2 r2
     assert(MI.getNumOperands() == 3 &&
            MI.getOperand(0).isRegister() &&
            MI.getOperand(1).isRegister() &&