[all-commits] [llvm/llvm-project] a5a4a4: [AArch64] Fix data race on RegisterBank initializa...

huihzhang via All-commits all-commits at lists.llvm.org
Wed Jan 29 10:13:17 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a5a4a47d691459afffc552bd3be7abfc86a49793
      https://github.com/llvm/llvm-project/commit/a5a4a47d691459afffc552bd3be7abfc86a49793
  Author: Huihui Zhang <huihuiz at quicinc.com>
  Date:   2020-01-29 (Wed, 29 Jan 2020)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64RegisterBankInfo.cpp

  Log Message:
  -----------
  [AArch64] Fix data race on RegisterBank initialization.

Summary:
The initialization of RegisterBank needs to be done only once. The
logic of AlreadyInit has a data race, use llvm::call_once instead.

This issue was identified through thread sanitizer.

Reviewers: efriedma, apazos, qcolombet, dsanders

Reviewed By: efriedma

Subscribers: arsenm, kristof.beyls, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73587




More information about the All-commits mailing list