This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][LLVM] Generate LLVM lifetime intrinsics while inlining.
ClosedPublic

Authored by definelicht on Jan 27 2023, 3:29 AM.

Details

Summary

Extend LLVMInlinerInterface to inline lifetime intrinsics for
LLVM::AllocaOp operations, and to insert new lifetime intrinsics when
an alloca is moved to the entry block that restrict its scope to where
the call was before inlining.

Depends on D142436

Diff Detail

Event Timeline

definelicht created this revision.Jan 27 2023, 3:29 AM
Herald added a project: Restricted Project. · View Herald Transcript
definelicht requested review of this revision.Jan 27 2023, 3:29 AM

Drop MLIRAnalysis dependency in favor of simple stack-based implementation.

gysit accepted this revision.Jan 30 2023, 12:13 AM

LGTM!

This revision is now accepted and ready to land.Jan 30 2023, 12:13 AM
This revision was automatically updated to reflect the committed changes.