[all-commits] [llvm/llvm-project] a4ade9: [MachineVerifier] Handle the PHI node for verifyLi...

Zhang Kang via All-commits all-commits at lists.llvm.org
Wed Jul 29 08:49:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a4ade9ed21e55946c52961a549ca4d23f9058b08
      https://github.com/llvm/llvm-project/commit/a4ade9ed21e55946c52961a549ca4d23f9058b08
  Author: Kang Zhang <shkzhang at cn.ibm.com>
  Date:   2020-07-29 (Wed, 29 Jul 2020)

  Changed paths:
    M llvm/lib/CodeGen/MachineVerifier.cpp
    M llvm/test/CodeGen/PowerPC/livevars-crash1.mir
    M llvm/test/CodeGen/PowerPC/livevars-crash2.mir

  Log Message:
  -----------
  [MachineVerifier] Handle the PHI node for verifyLiveVariables()

Summary:
When doing MachineVerifier for LiveVariables, the MachineVerifier pass
will calculate the LiveVariables, and compares the result with the
result livevars pass gave. If they are different, verifyLiveVariables()
will give error.

But when we calculate the LiveVariables in MachineVerifier, we don't
consider the PHI node, while livevars considers.

This patch is to fix above bug.

Reviewed By: bjope

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




More information about the All-commits mailing list