<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54212>54212</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Phi nodes missing predecessor entries when outlined code does not contain branch
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
AndrewLitteken
</td>
</tr>
</table>
<pre>
Reproduced: https://godbolt.org/z/roznP99P3
When outlining a phi node, if the the incoming branch is the parent block and the branch from that block is not outlined, we create broken code. The fix is to recognize when that branch is not contained, and ignore the region.
Patch coming soon.
cc @ornata
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxdUk2PnDAM_TVwsYoYAsty4DDtqqceRlWlnvNhIN1MjJJQ2vn1NQzTbVci4I_4vWcbReZ3_xXnQGbRaDJxhimlObKRVZ_5GckocqmgMLJ34xPo5i9ddxFZ-ZKV5_v7-4QeaEnOeutHkDBPFjwZzKpPYAdIE-7Hek3X7YYK0usJbNzDswzoEyhH-hWkN3vwuDIEurIvH2ku8ZQOMpbMBCuCDijTVkOvrEQzcwHwjVEG-2tnIQioafT2hrBuau-Qf2VsmJp8kg_QTYYdPYW78oCjJV_82_RFJq49Gor0Lqs1ZHVJwcskITe9MJ3oZJ5scthfjvFEuNoYt_o5oEGNMVIAnkWwnFvfpopmbwoM4X9ajw7yJbj-3eZsmhZVsDx2nPv5-HzgZf9Andhl6gUjG01dnap86p-0kiej20Y0HGqbRuj6qdanoWqN0IPKnVToYp81H7Oq8rjCDsF21rzktq_KqipFWZ-ey1aUxQnlc9epEmshhWpbngdepXXFpmP7pfLQ75LUMkZOOhtTfEtKnszoEXc6xpdLmij0Z28Crl9sSsi7zncF_d7BH76S78Y">