[all-commits] [llvm/llvm-project] 782a4d: [PowerPC] Use add instead of addReg in ppc-early-r...

Zhang Kang via All-commits all-commits at lists.llvm.org
Tue May 12 23:00:46 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 782a4dd1a478e41857744b483b104b5e66857fbf
      https://github.com/llvm/llvm-project/commit/782a4dd1a478e41857744b483b104b5e66857fbf
  Author: Kang Zhang <shkzhang at cn.ibm.com>
  Date:   2020-05-13 (Wed, 13 May 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCEarlyReturn.cpp
    M llvm/test/CodeGen/PowerPC/early-ret-verify.mir
    M llvm/test/CodeGen/PowerPC/early-ret.mir

  Log Message:
  -----------
  [PowerPC] Use add instead of addReg in ppc-early-ret pass

Summary:
The ppc-early-ret pass use the addReg() to add operand to the new
instruction, it can't reserve the flag of old operand. This has caused
machine verfications failed.
This patch use add() to instead of addReg().

Reviewed By: steven.zhang

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




More information about the All-commits mailing list