[NFC][llvm-exegesis] CombinationGenerator::performGeneration(): pull put state increm...
authorRoman Lebedev <lebedev.ri@gmail.com>
Fri, 14 Feb 2020 21:47:13 +0000 (00:47 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Fri, 14 Feb 2020 21:56:42 +0000 (00:56 +0300)
commitbaf98375bde77ba4b9705acb3d4312d437f7b9f9
tree31bad1ff7644d463405e9b3f302556f939a801aa
parentf4141367d00dc8524626d682c8ad56a11df5c850
[NFC][llvm-exegesis] CombinationGenerator::performGeneration(): pull put state increment into lambda

This avoids questionable code such as taking address of current
range-based for variable and comparing it with vector begin iterator.
While this may not be a problem in itself, it can be written more consice.
This was initially suggested by @aaronpuchert.
llvm/tools/llvm-exegesis/lib/SnippetGenerator.h