aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2021-07-19 16:29:39 +0100
committerJay Foad <jay.foad@amd.com>2021-07-26 14:27:30 +0100
commit9ac10658aeda44d8a90ae372c1478610d143c8bb (patch)
tree78609e5f40cbb8c3daa322a9fc1a23e71fc9073c /clang/lib/Frontend/CompilerInvocation.cpp
parent010f8e305705acb5128f409256e7f22ff3adc780 (diff)
downloadllvm-9ac10658aeda44d8a90ae372c1478610d143c8bb.zip
llvm-9ac10658aeda44d8a90ae372c1478610d143c8bb.tar.gz
llvm-9ac10658aeda44d8a90ae372c1478610d143c8bb.tar.bz2
[AMDGPU] Fix MMO for raw/struct buffer access with non-constant offset
Codegen for the raw/struct buffer access intrinsics would update the offset in the MMO to reflect the combined offset, if it was known to be constant. If the combined offset was not known to be constant, or if there was an index, it would set the offset in the MMO to 0. This is unsafe because it makes it look like the access does not alias with another access with a fixed non-zero offset. Fix these cases by setting the pointer in the MMO to null, to reflect the fact that we do not have any known IR value pointer + constant offset for the access. Differential Revision: https://reviews.llvm.org/D106284
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions