This is an archive of the discontinued LLVM Phabricator instance.

Add the use of register r for outlined function when register r is live in and defined later.
ClosedPublic

Authored by jinlin on Jan 22 2021, 2:57 PM.

Details

Summary

The compiler needs to mark register $x0 as live in for the following case.

$x1 = ADDXri $sp, 16, 0
BL @spam, csr_darwin_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit $x0, implicit killed $x1, implicit-def $sp, implicit-def dead $x0

Diff Detail