HomePhabricator

[Attributor] Pointer privatization attribute (argument promotion)

Authored by jdoerfert on Oct 30 2019, 3:20 PM.

Description

[Attributor] Pointer privatization attribute (argument promotion)

A pointer is privatizeable if it can be replaced by a new, private one.
Privatizing pointer reduces the use count, interaction between unrelated
code parts. This is a first step towards replacing argument promotion.
While we can already handle recursion (unlike argument promotion!) we
are restricted to stack allocations for now because we do not analyze
the uses in the callee.

Reviewed By: uenoku

Differential Revision: https://reviews.llvm.org/D68852

Details

Committed
jdoerfertJan 29 2020, 7:31 PM
Reviewer
uenoku
Differential Revision
D68852: [Attributor] Pointer privatization attribute (argument promotion)
Parents
rGf0654875fb24: [gn build] Port f2af0607000
Branches
Unknown
Tags
Unknown