[DFAJumpThreading] Remove incoming StartBlock from all phis when unfolding select...
commitc880fdc0f05f4a18400c5633cf6cd8fad85e3df0
authorXChy <xxs_chy@outlook.com>
Fri, 3 Nov 2023 19:32:20 +0000 (4 03:32 +0800)
committerGitHub <noreply@github.com>
Fri, 3 Nov 2023 19:32:20 +0000 (4 03:32 +0800)
treea21b735406cdd4e2a3ce471515edc58b7701e5d3
parent621d95a8765ad044a27750477636248397963518
[DFAJumpThreading] Remove incoming StartBlock from all phis when unfolding select (#71082)

Fixes #65222.
When unfolding select into diamond-like control flow, we need to remove
the StartBlock from all phis in EndBlock.
llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
llvm/test/Transforms/DFAJumpThreading/dfa-unfold-select.ll