[llvm-commits] [llvm] r71239 - /llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp

Anton Korobeynikov asl at math.spbu.ru
Fri May 8 11:51:21 PDT 2009


Author: asl
Date: Fri May  8 13:51:21 2009
New Revision: 71239

URL: http://llvm.org/viewvc/llvm-project?rev=71239&view=rev
Log:
Allow 8 bit select in custom inserter

Modified:
    llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp

Modified: llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp?rev=71239&r1=71238&r2=71239&view=diff

==============================================================================
--- llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/MSP430/MSP430ISelLowering.cpp Fri May  8 13:51:21 2009
@@ -610,7 +610,8 @@
                                                   MachineBasicBlock *BB) const {
   const TargetInstrInfo &TII = *getTargetMachine().getInstrInfo();
   DebugLoc dl = MI->getDebugLoc();
-  assert((MI->getOpcode() == MSP430::Select16) &&
+  assert((MI->getOpcode() == MSP430::Select16 ||
+          MI->getOpcode() == MSP430::Select8) &&
          "Unexpected instr type to insert");
 
   // To "insert" a SELECT instruction, we actually have to insert the diamond





More information about the llvm-commits mailing list