[all-commits] [llvm/llvm-project] 41555e: Preserve more MD_mem_parallel_loop_access and MD_a...

Andy Kaylor via All-commits all-commits at lists.llvm.org
Thu Jun 10 15:47:40 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 41555eaf65b12db00c8a18e7fe530f72ab9ebfc0
      https://github.com/llvm/llvm-project/commit/41555eaf65b12db00c8a18e7fe530f72ab9ebfc0
  Author: Andy Kaylor <andrew.kaylor at intel.com>
  Date:   2021-06-10 (Thu, 10 Jun 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SROA.cpp
    A llvm/test/Transforms/SROA/mem-par-metadata-sroa-cast.ll

  Log Message:
  -----------
  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




More information about the All-commits mailing list