Educate GetInstrSizeInBytes implementations that
authorDale Johannesen <dalej@apple.com>
Wed, 7 Apr 2010 19:51:44 +0000 (19:51 +0000)
committerDale Johannesen <dalej@apple.com>
Wed, 7 Apr 2010 19:51:44 +0000 (19:51 +0000)
DBG_VALUE does not generate code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100681 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMBaseInstrInfo.cpp
lib/Target/MSP430/MSP430InstrInfo.cpp
lib/Target/PowerPC/PPCInstrInfo.cpp
lib/Target/X86/X86InstrInfo.cpp

index 1995f79fa373919fc66d0c55db494c5e0eb39b97..7c49374f2e2961d4eaf93f8696a8cd3a773e9ace 100644 (file)
@@ -467,6 +467,7 @@ unsigned ARMBaseInstrInfo::GetInstSizeInBytes(const MachineInstr *MI) const {
     case TargetOpcode::KILL:
     case TargetOpcode::DBG_LABEL:
     case TargetOpcode::EH_LABEL:
+    case TargetOpcode::DBG_VALUE:
       return 0;
     }
     break;
index 03819041067c6fd11d993bbc5fbd63853df3f7a6..24ce403ddc7e88cc4c929e650c534ca0e581bdf2 100644 (file)
@@ -365,6 +365,7 @@ unsigned MSP430InstrInfo::GetInstSizeInBytes(const MachineInstr *MI) const {
     case TargetOpcode::EH_LABEL:
     case TargetOpcode::IMPLICIT_DEF:
     case TargetOpcode::KILL:
+    case TargetOpcode::DBG_VALUE:
       return 0;
     case TargetOpcode::INLINEASM: {
       const MachineFunction *MF = MI->getParent()->getParent();
index 6b0a282af09ced82d2a15887190de8ac567e844d..bc45c22972f27aebad36515bd1d1cc1485e589e4 100644 (file)
@@ -778,6 +778,7 @@ unsigned PPCInstrInfo::GetInstSizeInBytes(const MachineInstr *MI) const {
   case PPC::DBG_LABEL:
   case PPC::EH_LABEL:
   case PPC::GC_LABEL:
+  case PPC::DBG_VALUE:
     return 0;
   default:
     return 4; // PowerPC instructions are all 4 bytes
index ccb7b055b07950e77e6d3babe29917f43496f169..e67d3bb6bd09174bf06a9d95424252fec2d978de 100644 (file)
@@ -3406,6 +3406,7 @@ static unsigned GetInstSizeWithDesc(const MachineInstr &MI,
     }
     case TargetOpcode::DBG_LABEL:
     case TargetOpcode::EH_LABEL:
+    case TargetOpcode::DBG_VALUE:
       break;
     case TargetOpcode::IMPLICIT_DEF:
     case TargetOpcode::KILL: