[PowerPC] Use mtvsrdd to put callee-saved GPR into VSR
authorQiu Chaofan <qiucofan@cn.ibm.com>
Tue, 20 Apr 2021 08:32:24 +0000 (16:32 +0800)
committerQiu Chaofan <qiucofan@cn.ibm.com>
Tue, 20 Apr 2021 08:43:24 +0000 (16:43 +0800)
commit2432d80d3b54f67c0e496d6b8c11ceb9f573982d
treec5d4955c9dfe624b13a67b61dee88c45bfec9254
parent1ef5699d1a86bf1864eb4633f752c073630c1641
[PowerPC] Use mtvsrdd to put callee-saved GPR into VSR

This patch exploits mtvsrdd instruction (available in ISA3.0+) to save
two callee-saved GPR registers into a single VSR, making it more
efficient.

Reviewed By: jsji, nemanjai

Differential Revision: https://reviews.llvm.org/D62565
llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
llvm/lib/Target/PowerPC/PPCFrameLowering.h
llvm/test/CodeGen/PowerPC/prolog_vec_spills.mir