[all-commits] [llvm/llvm-project] 4f5756: llvm-reduce: Try to kill parallel workitems once w...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Jan 11 05:58:36 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f575620d51032cf98424c9defafe4dfc8d66f45
      https://github.com/llvm/llvm-project/commit/4f575620d51032cf98424c9defafe4dfc8d66f45
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-01-11 (Wed, 11 Jan 2023)

  Changed paths:
    A llvm/test/tools/llvm-reduce/Inputs/sleep.py
    A llvm/test/tools/llvm-reduce/parallel-workitem-kill.ll
    M llvm/tools/llvm-reduce/TestRunner.cpp
    M llvm/tools/llvm-reduce/TestRunner.h
    M llvm/tools/llvm-reduce/deltas/Delta.cpp
    M llvm/tools/llvm-reduce/llvm-reduce.cpp

  Log Message:
  -----------
  llvm-reduce: Try to kill parallel workitems once we have a result.

The current reduction logic tries to reproduce what a serial reduction
would produce, and just takes the first one that is still
interesting. We still have to wait for all others to complete though,
which at that point is just a waste.

This helps speed things up with long running reducers, which I
frequently have. e.g. for the added sleep test on my system, it took
about 8 seconds before this change and about 4 after.

https://reviews.llvm.org/D138953




More information about the All-commits mailing list