HomePhabricator

[CodeExtractor] Emit lifetime markers around reloads of outputs

Description

[CodeExtractor] Emit lifetime markers around reloads of outputs

CodeExtractor permits extracting a region of blocks from a function even
when values defined within the region are used outside of it.

This is typically done by creating an alloca in the original function
and reloading the alloca after a call to the extracted function.

Wrap the reload in lifetime start/end markers to promote stack coloring.

Suggested by Sergei Kachkov!

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

Details

Committed
vedantkJan 18 2019, 6:37 PM
Differential Revision
D56045: [CodeExtractor] Emit lifetime markers around reloads of outputs
Parents
rL351620: [hwasan] Madvise away unused shadow.
Branches
Unknown
Tags
Unknown