mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-28 22:20:43 +00:00
Remove unnecessary subtraction and addition by 1 around a couple for loops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167673 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
68b094f83d
commit
52ea245083
@ -12858,9 +12858,9 @@ static MachineBasicBlock *EmitPCMPSTRM(MachineInstr *MI, MachineBasicBlock *BB,
|
||||
DebugLoc dl = MI->getDebugLoc();
|
||||
MachineInstrBuilder MIB = BuildMI(*BB, MI, dl, TII->get(Opc));
|
||||
|
||||
unsigned NumArgs = MI->getNumOperands() - 1;
|
||||
for (unsigned i = 0; i < NumArgs; ++i) {
|
||||
MachineOperand &Op = MI->getOperand(i+1);
|
||||
unsigned NumArgs = MI->getNumOperands();
|
||||
for (unsigned i = 1; i < NumArgs; ++i) {
|
||||
MachineOperand &Op = MI->getOperand(i);
|
||||
if (!(Op.isReg() && Op.isImplicit()))
|
||||
MIB.addOperand(Op);
|
||||
}
|
||||
@ -12895,9 +12895,9 @@ static MachineBasicBlock *EmitPCMPSTRI(MachineInstr *MI, MachineBasicBlock *BB,
|
||||
DebugLoc dl = MI->getDebugLoc();
|
||||
MachineInstrBuilder MIB = BuildMI(*BB, MI, dl, TII->get(Opc));
|
||||
|
||||
unsigned NumArgs = MI->getNumOperands() - 1; // remove the results
|
||||
for (unsigned i = 0; i < NumArgs; ++i) {
|
||||
MachineOperand &Op = MI->getOperand(i+1);
|
||||
unsigned NumArgs = MI->getNumOperands(); // remove the results
|
||||
for (unsigned i = 1; i < NumArgs; ++i) {
|
||||
MachineOperand &Op = MI->getOperand(i);
|
||||
if (!(Op.isReg() && Op.isImplicit()))
|
||||
MIB.addOperand(Op);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user