[all-commits] [llvm/llvm-project] 2cc77b: [LiveVariables] Don't set undef reg PHI used as li...

Zhang Kang via All-commits all-commits at lists.llvm.org
Wed Jun 3 08:26:22 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2cc77b2b8a022c0f6c7c60bf3eda157f62007d88
      https://github.com/llvm/llvm-project/commit/2cc77b2b8a022c0f6c7c60bf3eda157f62007d88
  Author: Kang Zhang <shkzhang at cn.ibm.com>
  Date:   2020-06-03 (Wed, 03 Jun 2020)

  Changed paths:
    M llvm/lib/CodeGen/LiveVariables.cpp
    A llvm/test/CodeGen/AArch64/PHIElimination-crash.mir

  Log Message:
  -----------
  [LiveVariables] Don't set undef reg PHI used as live for FromMBB

Summary:
In the patch D73152, it adds a new function LiveVariables::addNewBlock.
This new function will add the reg which PHI used to the MBB which reg
is from.
But the new function may cause LiveVariable Verification failed when the
Src reg in PHI is undef.

Reviewed By: bjope

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




More information about the All-commits mailing list