HomePhabricator

[CodeExtractor] Emit lifetime markers around reloads of outputs

Authored by vsk on Jan 18 2019, 6:37 PM.

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

llvm-svn: 351621

Details

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