Don't repeatedly evaluate size() in the for loop. NFCI.

llvm-svn: 329853
This commit is contained in:
Simon Pilgrim 2018-04-11 22:24:48 +00:00
parent 81e041e541
commit eec640564a

View File

@ -261,7 +261,7 @@ public:
// Also for instructions that their EVEX version was upgraded to work with
// k-registers. For example VPCMPEQBrm (xmm output register) and
// VPCMPEQBZ128rm (k register output register).
for (unsigned i = 0; i < Inst->Operands.size(); i++) {
for (unsigned i = 0, e = Inst->Operands.size(); i < e; i++) {
Record *OpRec1 = Inst->Operands[i].Rec;
Record *OpRec2 = Inst2->Operands[i].Rec;