[all-commits] [llvm/llvm-project] a71fe4: [PowerPC] add a new pass to expand ctr loop pseudos

Chen Zheng via All-commits all-commits at lists.llvm.org
Mon Jun 20 19:57:42 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a71fe49bb534fda18edf57284e16d1705fc54879
  Author: Chen Zheng <czhengsz at cn.ibm.com>
  Date:   2022-06-20 (Mon, 20 Jun 2022)

  Changed paths:
    M llvm/lib/Target/PowerPC/CMakeLists.txt
    M llvm/lib/Target/PowerPC/PPC.h
    A llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
    M llvm/lib/Target/PowerPC/PPCInstr64Bit.td
    M llvm/lib/Target/PowerPC/PPCInstrInfo.td
    M llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
    M llvm/test/CodeGen/PowerPC/O3-pipeline.ll
    A llvm/test/CodeGen/PowerPC/ctrloops32.mir
    A llvm/test/CodeGen/PowerPC/ctrloops64.mir

  Log Message:
  [PowerPC] add a new pass to expand ctr loop pseudos

This patch implements a new way to generate the CTR loops. Now the
intrinsics inserted in hardware loop pass will be mapped to pseudo
instructions and these pseudo instructions will be expanded to CTR
loop or normal compare+branch loop in this post ISEL pass.

Reviewed By: lkail

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

More information about the All-commits mailing list