llvm.org GIT mirror llvm / cdee1c4
Minor speed tweak. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36432 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 13 years ago
1 changed file(s) with 3 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
516516 MachineOperand &AddNewOperand(bool IsImp = false) {
517517 assert((IsImp || !OperandsComplete()) &&
518518 "Trying to add an operand to a machine instr that is already done!");
519 if (NumImplicitOps == 0) { // This is true most of the time.
519 if (IsImp || NumImplicitOps == 0) { // This is true most of the time.
520520 Operands.push_back(MachineOperand());
521521 return Operands.back();
522 } else {
523 return *Operands.insert(Operands.begin()+Operands.size()-NumImplicitOps,
524 MachineOperand());
525522 }
523 return *Operands.insert(Operands.begin()+Operands.size()-NumImplicitOps,
524 MachineOperand());
526525 }
527526
528527 /// addImplicitDefUseOperands - Add all implicit def and use operands to