2026-10-18 01:50 UTC
Do any of you LLVM folks know a list of absolutely minimal provenance-like assumptions that the core passes rely on? I believe the core alias analysis only relies on address range analysis, but you need at least some minimal provenance-like assumptions to justify why mem2reg can replace alloca/malloc with SSA values: it's UB if a pre-existing pointer aliases a fresh allocation and you load/store via that pointer after the allocation event ("semantic use-after-free"), or something like that.
Replies (0)
No replies.