[PATCH] D66167: MemTag: stack initializer merging.
Evgenii Stepanov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 13 14:06:26 PDT 2019
eugenis created this revision.
eugenis added reviewers: pcc, vitalybuka, ostannard.
Herald added subscribers: hiraditya, javed.absar, srhines.
Herald added a project: LLVM.
MTE provides instructions to update memory tags and data at the same
time. This change makes use of those to generate more compact code for
stack variable tagging + initialization.
We collect memory store and memset instructions following an alloca or a
lifetime.start call, and replace them with the corresponding MTE
intrinsics. Since the intrinsics work on 16-byte aligned chunks, the
stored values are combined as necessary.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D66167
Files:
llvm/lib/Target/AArch64/AArch64.h
llvm/lib/Target/AArch64/AArch64StackTagging.cpp
llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
llvm/test/CodeGen/AArch64/O3-pipeline.ll
llvm/test/CodeGen/AArch64/stack-tagging-initializer-merge.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66167.214915.patch
Type: text/x-patch
Size: 25380 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190813/d5634dd3/attachment.bin>
More information about the llvm-commits
mailing list