[all-commits] [llvm/llvm-project] cfc929: [CHR] Fix up phi nodes with unreachable predecesso...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Aug 11 00:38:18 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cfc9298dc588c626a52193260da28a630e103916
      https://github.com/llvm/llvm-project/commit/cfc9298dc588c626a52193260da28a630e103916
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-08-11 (Fri, 11 Aug 2023)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
    A llvm/test/Transforms/PGOProfile/chr-dead-pred.ll

  Log Message:
  -----------
  [CHR] Fix up phi nodes with unreachable predecessors (PR64594)

If a block in the CHR region has an unreachable predecessor, then
there will be no edge from that predecessor to the newly cloned
block. However, a phi node entry for it will be left behind. Make
sure that these incoming blocks get dropped as well.

Fixes https://github.com/llvm/llvm-project/issues/64594.

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




More information about the All-commits mailing list