================
@@ -323,6 +332,8 @@ void SILowerControlFlow::emitElse(MachineInstr &MI) {
if (LV)
LV->replaceKillInstruction(SrcReg, MI, *OrSaveExec);
+ move_ins_before_phis(*OrSaveExec);
----------------
alex-t wrote:
EXEC restoring instructions happen not only in ELSE
https://github.com/llvm/llvm-project/pull/159557