[all-commits] [llvm/llvm-project] 2b31a6: [llvm-exegesis] Make duplicate snippet repetitor p...

Aiden Grossman via All-commits all-commits at lists.llvm.org
Fri Jan 19 11:34:28 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2b31a673de51061d0407b79127054a5083659efc
      https://github.com/llvm/llvm-project/commit/2b31a673de51061d0407b79127054a5083659efc
  Author: Aiden Grossman <agrossman154 at yahoo.com>
  Date:   2024-01-19 (Fri, 19 Jan 2024)

  Changed paths:
    M llvm/tools/llvm-exegesis/lib/SnippetRepetitor.cpp
    M llvm/unittests/tools/llvm-exegesis/X86/SnippetRepetitorTest.cpp

  Log Message:
  -----------
  [llvm-exegesis] Make duplicate snippet repetitor produce whole snippets (#77224)

Currently, the duplicate snippet repetitor will truncate snippets that
do not exactly divide the minimum number of instructions. This patch
corrects that behavior by making the duplicate snippet repetitor
duplicate the snippet in its entirety until the minimum number of
instructions has been reached.

This makes the behavior consistent with the loop snippet repetitor,
which will execute at least `--num-repetitions` (soon to be renamed
`--min-instructions`) instructions.




More information about the All-commits mailing list