HomePhabricator

[PowerPC] Only make copies of registers on stack in variadic function when…

Authored by lkail on Jul 8 2020, 11:51 PM.

Description

[PowerPC] Only make copies of registers on stack in variadic function when va_start is called

On PPC64, for a variadic function, if va_start is not called, it won't
access any variadic argument on stack, thus we can save stores of
registers used to pass arguments.

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