mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Educate GetInstrSizeInBytes implementations that
DBG_VALUE does not generate code. llvm-svn: 100681
This commit is contained in:
parent
f2480270e1
commit
8691bcbc2a
@ -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;
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user