[all-commits] [llvm/llvm-project] 00928a: Fix SROA with a PHI mergig values from a same block

Stanislav Mekhanoshin via All-commits all-commits at lists.llvm.org
Mon Oct 26 12:58:53 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 00928a1956a1618f394ffe99fc63b0d81e1f88c7
      https://github.com/llvm/llvm-project/commit/00928a1956a1618f394ffe99fc63b0d81e1f88c7
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2020-10-26 (Mon, 26 Oct 2020)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SROA.cpp
    M llvm/test/Transforms/SROA/phi-gep.ll

  Log Message:
  -----------
  Fix SROA with a PHI mergig values from a same block

This fixes the bug 47945. It is legal to have a PHI with values
from from the same block, but values must stay the same. In this
case it is illegal to merge different values.

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




More information about the All-commits mailing list