diff options
author | Kuba Mracek <mracek@apple.com> | 2018-08-21 21:24:22 +0000 |
---|---|---|
committer | Kuba Mracek <mracek@apple.com> | 2018-08-21 21:24:22 +0000 |
commit | faef7d034a9ec6cb757137adce8e8670ec6c2d7b (patch) | |
tree | bb480a2da52051a854f6ff66c68474d2cad9312a /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | df4cd7cbf97c23f363ca07dc4038ecc48c1e6623 (diff) | |
download | llvm-faef7d034a9ec6cb757137adce8e8670ec6c2d7b.zip llvm-faef7d034a9ec6cb757137adce8e8670ec6c2d7b.tar.gz llvm-faef7d034a9ec6cb757137adce8e8670ec6c2d7b.tar.bz2 |
[tsan] Avoid calling Block_copy in the "sync" GCD interceptors
The synchronous dispatch functions in GCD (dispatch_sync, dispatch_barrier_sync), don't make a copy of the passed block. To maintain binary compatibility, we should avoid doing that as well in TSan, as there's no reason to do that. The synchronous dispatch functions will not return before the block is actually executed.
rdar://problem/42242579
Differential Revision: https://reviews.llvm.org/D50920
llvm-svn: 340342
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions