[PATCH] D103254: Preserve more MD_mem_parallel_loop_access and MD_access_group in SROA

Mark Mendell via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 27 07:55:54 PDT 2021


mmendell created this revision.
mmendell added reviewers: aeubanks, nikic, wsmoses.
mmendell added a project: LLVM.
Herald added a subscriber: hiraditya.
mmendell requested review of this revision.
Herald added a subscriber: llvm-commits.

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.


https://reviews.llvm.org/D103254

Files:
  llvm/lib/Transforms/Scalar/SROA.cpp
  llvm/test/Transforms/SROA/mem-par-metadata-sroa-cast.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103254.348265.patch
Type: text/x-patch
Size: 6805 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210527/a4335664/attachment.bin>


More information about the llvm-commits mailing list