aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/MachO/InterfaceFile.cpp
diff options
context:
space:
mode:
authorNicolai Haehnle <nhaehnle@gmail.com>2018-11-29 11:06:14 +0000
committerNicolai Haehnle <nhaehnle@gmail.com>2018-11-29 11:06:14 +0000
commitd1f45dad84f81ba79a44eb28efd94864384391ce (patch)
tree3e732a64448cca940c14e564f25ee485a8d64e18 /llvm/lib/TextAPI/MachO/InterfaceFile.cpp
parentae369d70c31074c5a956c770414b7ac5da809af8 (diff)
downloadllvm-d1f45dad84f81ba79a44eb28efd94864384391ce.zip
llvm-d1f45dad84f81ba79a44eb28efd94864384391ce.tar.gz
llvm-d1f45dad84f81ba79a44eb28efd94864384391ce.tar.bz2
AMDGPU/InsertWaitcnts: Simplify pending events tracking
Summary: Instead of storing the "score" (last time point) of the various relevant events, only store whether an event is pending or not. This is sufficient, because whenever only one event of a count type is pending, its last time point is naturally the upper bound of all time points of this count type, and when multiple event types are pending, the count type has gone out of order and an s_waitcnt to 0 is required to clear any pending event type (and will then clear all pending event types for that count type). This also removes the special handling of GDS_GPR_LOCK and EXP_GPR_LOCK. I do not understand what this special handling ever attempted to achieve. It has existed ever since the original port from an internal code base, so my best guess is that it solved a problem related to EXEC handling in that internal code base. Reviewers: msearles, rampitec, scott.linder, kanarayan Subscribers: arsenm, kzhuravl, jvesely, wdng, yaxunl, dstuttard, tpr, t-tye, llvm-commits, hakzsam Differential Revision: https://reviews.llvm.org/D54228 llvm-svn: 347850
Diffstat (limited to 'llvm/lib/TextAPI/MachO/InterfaceFile.cpp')
0 files changed, 0 insertions, 0 deletions