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.
Paths
| Differential D73605
[ARM] Fix data race on RegisterBank initialization. ClosedPublic Authored by huihuiz on Jan 28 2020, 9:28 PM.
Details Summary The initialization of RegisterBank needs to be done only once. The This is continuing work of D73587.
Diff Detail
Event TimelineHerald added subscribers: hiraditya, kristof.beyls, wdng. · View Herald TranscriptJan 28 2020, 9:28 PM This revision is now accepted and ready to land.Jan 29 2020, 9:30 AM Closed by commit rG91618d940ea3: [ARM] Fix data race on RegisterBank initialization. (authored by huihuiz). · Explain WhyJan 29 2020, 10:17 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 241212 llvm/lib/Target/ARM/ARMRegisterBankInfo.cpp
|