<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
----------------<br>
</span><span class="">dberlin wrote:<br>
> I'm curious why you think you need stable sort here as opposed to regular<br>
><br>
</span>I don't. Changed.<br>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br></div><div>(i'm offsite today, but someone should test this in newgvn too if i'm right).</div><div><br></div><div>Do we allow switch statements with multiple edges to ourself?<br><br>ie</div><div><br></div><div>bb1:<br><br>switch <whatever> [</div><div>i32 0 : label bb1</div><div>i32 1: label bb1 ]</div><div><br></div><div><br></div><div>(which, after propagation,  could cause a phi with different operands and the same incoming blocks)</div><div>If so, either we need stable sorts, or a better ordering of incoming blocks, because the pointer equality we use will not definitely sort them into a consistent order</div><div> </div></div></div></div>