[all-commits] [llvm/llvm-project] 476ced: [MTE] [HWASan] Support diamond lifetimes.
Florian Mayer via All-commits
all-commits at lists.llvm.org
Wed Jun 22 11:16:48 PDT 2022
Author: Florian Mayer <fmayer at google.com>
Date: 2022-06-22 (Wed, 22 Jun 2022)
[MTE] [HWASan] Support diamond lifetimes.
We were overly conservative and required a ret statement to be dominated
completely be a single lifetime.end marker. This is quite restrictive
and leads to two problems:
* limits coverage of use-after-scope, as we degenerate to
* increases stack usage in programs, as we have to remove all lifetime
markers if we degenerate to use-after-return, which prevents
reuse of stack slots by the stack coloring algorithm.
Reviewed By: eugenis
Differential Revision: https://reviews.llvm.org/D127905
More information about the All-commits