diff options
author | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | 2021-05-12 11:35:12 -0700 |
---|---|---|
committer | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | 2021-05-13 08:52:20 -0700 |
commit | 8f98356bb53dca07a86bf098556d446e0d5af6fe (patch) | |
tree | f577173877a5b0dcf133ae825d3942b0d7cd6ae3 /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | 6a67e05a26eb5f58665bd6d063b9f389e7dd28a7 (diff) | |
download | llvm-8f98356bb53dca07a86bf098556d446e0d5af6fe.zip llvm-8f98356bb53dca07a86bf098556d446e0d5af6fe.tar.gz llvm-8f98356bb53dca07a86bf098556d446e0d5af6fe.tar.bz2 |
[AMDGPU] Only allow global fp atomics with unsafe option
Previously we were allowing to use FP atomics without
-amdgpu-unsafe-fp-atomics option if a scope is less then
system. This is not safe just as well if we have UC memory.
This change only allows global and flat FP atomics with
the unsafe option. Consequentially that makes a check for
denorm mode redundant since we skip it with the unsafe
option and do not have a way to produce these instructions
without it anyway.
Differential Revision: https://reviews.llvm.org/D102347
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions