Split insertMBarrierWaitBeforeFirstRead into two functions: insertMBarrierWaitBeforeFirstRead (same name), and updateRawMbarrierToWaitMap, where insertMBarrierWaitBeforeFirstRead checks if there are wait ready to be inserted, and insert these waits, and updateRawMbarrierToWaitMap updates raw_mbarriers_to_wait_.
This PR is just a refactor with no behavioral change. Things changed:
mbarriers_to_wait_
->raw_mbarriers_to_wait_
getAllMbarriersToWaitFor
->getAllMbarriersToWait
insertMBarrierWaitBeforeFirstRead
into two functions:insertMBarrierWaitBeforeFirstRead
(same name), andupdateRawMbarrierToWaitMap
, whereinsertMBarrierWaitBeforeFirstRead
checks if there are wait ready to be inserted, and insert these waits, andupdateRawMbarrierToWaitMap
updatesraw_mbarriers_to_wait_
.