diff options
author | Andy Kaylor <andrew.kaylor@intel.com> | 2021-06-09 17:02:53 -0700 |
---|---|---|
committer | Andy Kaylor <andrew.kaylor@intel.com> | 2021-06-10 15:47:03 -0700 |
commit | 41555eaf65b12db00c8a18e7fe530f72ab9ebfc0 (patch) | |
tree | 8029078f8ec2305ae08ad0c250cb7a3528119ce4 /llvm/lib/IR/Module.cpp | |
parent | 462f8f06113616ac5646144972d3f453639aac69 (diff) | |
download | llvm-41555eaf65b12db00c8a18e7fe530f72ab9ebfc0.zip llvm-41555eaf65b12db00c8a18e7fe530f72ab9ebfc0.tar.gz llvm-41555eaf65b12db00c8a18e7fe530f72ab9ebfc0.tar.bz2 |
Preserve more MD_mem_parallel_loop_access and MD_access_group in SROA
SROA sometimes preserves MD_mem_parallel_loop_access and MD_access_group metadata on loads/stores, and sometimes fails to do so. This change adds copying of the MD after other CreateAlignedLoad/CreateAlignedStores. Also fix a case where the metadata was being copied from a load, rather than the store.
Added a LIT test to catch one case.
Patch by Mark Mendell
Differential Revision: https://reviews.llvm.org/D103254
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions