[PATCH] D102215: [SelectionDAG] Propagate scoped AA metadata when lowering mem intrinsics.

Michael Liao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 10 20:34:49 PDT 2021


hliao created this revision.
Herald added subscribers: ecnelises, kerbowa, hiraditya, nhaehnle, jvesely.
hliao requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

- When memory intrinsics, such as memcpy, the attached scoped AA metadata is not passed down to the backend. As a result, the backend cannot schedule relevant memory operations around them following that hint. In this patch, SelectionDAG is enhanced to propagate that metadata (scoped AA only) when they are lowered into loads and stores.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102215

Files:
  llvm/include/llvm/CodeGen/SelectionDAG.h
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/test/CodeGen/AArch64/memcpy-scoped-aa.ll
  llvm/test/CodeGen/AMDGPU/memcpy-scoped-aa.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102215.344282.patch
Type: text/x-patch
Size: 20752 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210511/babe9fc6/attachment.bin>


More information about the llvm-commits mailing list