input:
declare void @g() define void @f() { br i1 undef, label %if.end, label %if.else if.else: call void @g() br label %if.end if.end: ret void }
declare void @g() define void @f() { if.else: tail call void @g() ret void }
input:
after optimizations: