[all-commits] [llvm/llvm-project] 8bb6c8: [AMDGPU] Fix data race on RegisterBank initializat...
huihzhang via All-commits
all-commits at lists.llvm.org
Wed Jan 29 10:14:53 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 8bb6c8a22af845618cfd6c27853dca1b48d30ce0
https://github.com/llvm/llvm-project/commit/8bb6c8a22af845618cfd6c27853dca1b48d30ce0
Author: Huihui Zhang <huihuiz at quicinc.com>
Date: 2020-01-29 (Wed, 29 Jan 2020)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
Log Message:
-----------
[AMDGPU] Fix data race on RegisterBank initialization.
Summary:
The initialization of RegisterBank needs to be done only once. The
logic of AlreadyInit has data race, use llvm::call_once instead.
This is continuing work of D73587.
Reviewers: arsenm, tstellar, ronlieb, efriedma, apazos, nhaehnle
Reviewed By: nhaehnle
Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, kerbowa, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73604
More information about the All-commits
mailing list