[PATCH] D93376: [LangRef] Clarify the semantics of lifetime intrinsics
Juneyoung Lee via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 18 01:18:25 PST 2020
aqjune added a comment.
In D93376#2462365 <https://reviews.llvm.org/D93376#2462365>, @RalfJung wrote:
> Possibly a better fix is to avoid this "magic backward in time" effect, and instead use a flag on alloca to reflect whether memory is immediately allocated, or not. (The details of the semantics of this could still be tricky though.)
Yeah, alloca should know its 'valid' location in advance. A simple solution would be to make ptrtoint yield poison if it is executed before lifetime.start, but it sacrifies mobility of ptrtoint.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93376/new/
https://reviews.llvm.org/D93376
More information about the llvm-commits
mailing list