[PATCH] D65700: [Transforms] Do not drop !preserve.access.index metadata

Yonghong Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 3 11:01:17 PDT 2019


yonghong-song created this revision.
yonghong-song added a reviewer: ast.
Herald added subscribers: llvm-commits, arphaman, hiraditya.
Herald added a project: LLVM.

Currently, when a GVN or CSE optimization happens,
the llvm.preserve.access.index metadata is dropped.
This caused a problem for BPF AbstructMemberOffset phase
as it relies on the metadata (debuginfo types).

This patch added proper hooks in lib/Transforms to
preserve !preserve.access.index metadata. A test
case is added to ensure metadata is preserved under CSE.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D65700

Files:
  llvm/lib/Transforms/Utils/Local.cpp
  llvm/lib/Transforms/Utils/SimplifyCFG.cpp
  llvm/test/CodeGen/BPF/CORE/intrinsic-transforms.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65700.213194.patch
Type: text/x-patch
Size: 8949 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190803/2ee6dee3/attachment.bin>


More information about the llvm-commits mailing list