[PATCH] D95826: [SROA] Propagate correct TBAA/TBAA Struct offsets
William Moses via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 1 15:17:42 PST 2021
wsmoses created this revision.
wsmoses added a reviewer: jdoerfert.
Herald added subscribers: dexonsmith, kosarev, hiraditya.
wsmoses requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
SROA does not correctly account for offsets in TBAA/TBAA struct metadata.
This patch creates functionality for generating new MD with the corresponding
offset and updates SROA to use this functionality.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D95826
Files:
llvm/include/llvm/IR/Metadata.h
llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp
llvm/lib/Transforms/Scalar/SROA.cpp
llvm/test/Transforms/SROA/tbaa-struct2.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95826.320618.patch
Type: text/x-patch
Size: 11433 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210201/ab6c45e4/attachment.bin>
More information about the llvm-commits
mailing list