Unbreak JIT. Ignore TargetInstrInfo::IMPLICIT_DEF.
authorEvan Cheng <evan.cheng@apple.com>
Mon, 17 Mar 2008 06:56:52 +0000 (06:56 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 17 Mar 2008 06:56:52 +0000 (06:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48447 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaCodeEmitter.cpp
lib/Target/PowerPC/PPCCodeEmitter.cpp
lib/Target/X86/X86CodeEmitter.cpp

index 0ae99a9dbb987a8762fce45c713e07e3fcfe932c..51a1404f32ca3a1f77b5a72b11978cd6331d8c5d 100644 (file)
@@ -95,6 +95,7 @@ void AlphaCodeEmitter::emitBasicBlock(MachineBasicBlock &MBB) {
     case Alpha::ALTENT:
     case Alpha::PCLABEL:
     case Alpha::MEMLABEL:
+    case TargetInstrInfo::IMPLICIT_DEF:
       break; //skip these
     }
   }
index d2bbebbed97a1b116197c56a57af60ea5f3e88d2..50c9664fbc988e798041a637c3522598f1300ad1 100644 (file)
@@ -112,6 +112,8 @@ void PPCCodeEmitter::emitBasicBlock(MachineBasicBlock &MBB) {
     case TargetInstrInfo::LABEL:
       MCE.emitLabel(MI.getOperand(0).getImm());
       break;
+    case TargetInstrInfo::IMPLICIT_DEF:
+      break; // pseudo opcode, no side effects
     case PPC::MovePCtoLR:
     case PPC::MovePCtoLR8:
       assert(TM.getRelocationModel() == Reloc::PIC_);
index 87481c7d7f14d72cf4f980a2487c8e3a05ec8e85..e6cd4123413362aa1508e580b3c583de20b34869 100644 (file)
@@ -621,6 +621,7 @@ void Emitter::emitInstruction(const MachineInstr &MI,
     case TargetInstrInfo::LABEL:
       MCE.emitLabel(MI.getOperand(0).getImm());
       break;
+    case TargetInstrInfo::IMPLICIT_DEF:
     case TargetInstrInfo::DECLARE:
     case X86::DWARF_LOC:
     case X86::FP_REG_KILL: