llvm.org GIT mirror llvm / ab5573e
Simplify. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203199 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 5 years ago
1 changed file(s) with 2 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
572572 // If this machine instr is an inline asm, measure it.
573573 if (MI->getOpcode() == ARM::INLINEASM)
574574 return getInlineAsmLength(MI->getOperand(0).getSymbolName(), *MAI);
575 if (MI->isLabel())
576 return 0;
577575 unsigned Opc = MI->getOpcode();
578576 switch (Opc) {
579 case TargetOpcode::IMPLICIT_DEF:
580 case TargetOpcode::KILL:
581 case TargetOpcode::PROLOG_LABEL:
582 case TargetOpcode::EH_LABEL:
583 case TargetOpcode::DBG_VALUE:
577 default:
578 // pseudo-instruction sizes are zero.
584579 return 0;
585580 case TargetOpcode::BUNDLE:
586581 return getInstBundleLength(MI);
643638 ++NumEntries;
644639 return NumEntries * EntrySize + InstSize;
645640 }
646 default:
647 // Otherwise, pseudo-instruction sizes are zero.
648 return 0;
649641 }
650642 }
651643