HomePhabricator

[LoopDeletion] Handle Phis with similar inputs from different blocks

Authored by mkazantsev on Jun 20 2021, 9:37 PM.

Description

[LoopDeletion] Handle Phis with similar inputs from different blocks

This patch lifts the requirement to have the only incoming live block
for Phis. There can be multiple live blocks if the same value comes to
phi from all of them.

Differential Revision: https://reviews.llvm.org/D103959
Reviewed By: nikic, lebedev.ri