[all-commits] [llvm/llvm-project] 4bb0a1: [PowerPC] Fix the liveins for ppc-expand-isel pass

Zhang Kang via All-commits all-commits at lists.llvm.org
Mon Apr 27 20:23:26 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4bb0a1cb70732f16749df6d47fd85eb86d60f587
      https://github.com/llvm/llvm-project/commit/4bb0a1cb70732f16749df6d47fd85eb86d60f587
  Author: Kang Zhang <shkzhang at cn.ibm.com>
  Date:   2020-04-28 (Tue, 28 Apr 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCExpandISEL.cpp
    M llvm/test/CodeGen/PowerPC/expand-isel-liveness.mir

  Log Message:
  -----------
  [PowerPC] Fix the liveins for ppc-expand-isel pass

Summary:
In the ppc-expand-isel pass, we use stepForward() to update the
liveins, this function is not recommended, because it needs the
accurate kill info.

This patch uses the function computeAndAddLiveIns() to update the
liveins, it's the recommended method and can fix the liveins bug for
ppc-expand-isel pass..

Reviewed By: efriedma, lkail

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




More information about the All-commits mailing list