[all-commits] [llvm/llvm-project] 2432d8: [PowerPC] Use mtvsrdd to put callee-saved GPR into...

Qiu Chaofan via All-commits all-commits at lists.llvm.org
Tue Apr 20 01:43:55 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2432d80d3b54f67c0e496d6b8c11ceb9f573982d
      https://github.com/llvm/llvm-project/commit/2432d80d3b54f67c0e496d6b8c11ceb9f573982d
  Author: Qiu Chaofan <qiucofan at cn.ibm.com>
  Date:   2021-04-20 (Tue, 20 Apr 2021)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
    M llvm/lib/Target/PowerPC/PPCFrameLowering.h
    M llvm/test/CodeGen/PowerPC/prolog_vec_spills.mir

  Log Message:
  -----------
  [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




More information about the All-commits mailing list