[all-commits] [llvm/llvm-project] baf983: [NFC][llvm-exegesis] CombinationGenerator::perform...

Roman Lebedev via All-commits all-commits at lists.llvm.org
Fri Feb 14 13:56:52 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: baf98375bde77ba4b9705acb3d4312d437f7b9f9
      https://github.com/llvm/llvm-project/commit/baf98375bde77ba4b9705acb3d4312d437f7b9f9
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2020-02-15 (Sat, 15 Feb 2020)

  Changed paths:
    M llvm/tools/llvm-exegesis/lib/SnippetGenerator.h

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list