[all-commits] [llvm/llvm-project] 91618d: [ARM] Fix data race on RegisterBank initialization.
huihzhang via All-commits
all-commits at lists.llvm.org
Wed Jan 29 10:15:49 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 91618d940ea3009d7e1489df4c8ca12017a0f612
https://github.com/llvm/llvm-project/commit/91618d940ea3009d7e1489df4c8ca12017a0f612
Author: Huihui Zhang <huihuiz at quicinc.com>
Date: 2020-01-29 (Wed, 29 Jan 2020)
Changed paths:
M llvm/lib/Target/ARM/ARMRegisterBankInfo.cpp
Log Message:
-----------
[ARM] 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, rovka, dsanders, t.p.northover, efriedma, apazos
Reviewed By: arsenm
Subscribers: wdng, kristof.beyls, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73605
More information about the All-commits
mailing list