[all-commits] [llvm/llvm-project] 9b91bc: tsan: removing redundant loop in ThreadClock::rele...

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Wed Feb 19 08:30:07 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b91bcf6c6187afb488ef6e12b8ef245b6635fd2
      https://github.com/llvm/llvm-project/commit/9b91bcf6c6187afb488ef6e12b8ef245b6635fd2
  Author: Daniel Fava <danielsfava at gmail.com>
  Date:   2020-02-19 (Wed, 19 Feb 2020)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_clock.cpp

  Log Message:
  -----------
  tsan: removing redundant loop in ThreadClock::release()

The removed loop clears reused for entries at the tail of a SyncClock.
The loop is redundant since those entries were already cleared by the
immediately preceding loop, which iterates over all entries in the
SyncClock (including the tail entries).




More information about the All-commits mailing list