summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-04-11 22:24:48 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-04-11 22:24:48 +0000
commit781dece55e49b4694f8d435ae438f98d0aad2e5f (patch)
treef955168da6266671f12a555d2a0acabb8ef7548d /llvm/utils
parentc564dc060aec5f2bda9983fc4a2a318c971e94e1 (diff)
downloadbcm5719-llvm-781dece55e49b4694f8d435ae438f98d0aad2e5f.tar.gz
bcm5719-llvm-781dece55e49b4694f8d435ae438f98d0aad2e5f.zip
Don't repeatedly evaluate size() in the for loop. NFCI.
llvm-svn: 329853
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/TableGen/X86EVEX2VEXTablesEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/X86EVEX2VEXTablesEmitter.cpp b/llvm/utils/TableGen/X86EVEX2VEXTablesEmitter.cpp
index 7fc8cda65da..9d2d3178866 100644
--- a/llvm/utils/TableGen/X86EVEX2VEXTablesEmitter.cpp
+++ b/llvm/utils/TableGen/X86EVEX2VEXTablesEmitter.cpp
@@ -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;
OpenPOWER on IntegriCloud