diff options
author | Aaron Puchert <aaron.puchert@sap.com> | 2021-09-18 13:46:50 +0200 |
---|---|---|
committer | Aaron Puchert <aaron.puchert@sap.com> | 2021-09-18 13:46:55 +0200 |
commit | 9b889f826ff587e9758c80823419512d502e457d (patch) | |
tree | 7a3049b5f42c72cc0c29e9b40f0554c10c7fe838 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | 0eb75a41c5d46bda6e31bc33bb81acef1b0890f2 (diff) | |
download | llvm-9b889f826ff587e9758c80823419512d502e457d.zip llvm-9b889f826ff587e9758c80823419512d502e457d.tar.gz llvm-9b889f826ff587e9758c80823419512d502e457d.tar.bz2 |
Thread safety analysis: Warn when demoting locks on back edges
Previously in D104261 we warned about dropping locks from back edges,
this is the corresponding change for exclusive/shared joins. If we're
entering the loop with an exclusive change, which is then relaxed to a
shared lock before we loop back, we have already analyzed the loop body
with the stronger exclusive lock and thus might have false positives.
There is a minor non-observable change: we modify the exit lock set of a
function, but since that isn't used further it doesn't change anything.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D106713
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions