<div dir="ltr"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>At this point however it doesn't (obviously) look like one (it still using different vregs) which suggests it might require a bit more of work to discover something that will ultimately lead to a redundant copy. I will investigate this option as well.<br></div></div></blockquote><div><br></div></div><div>I correct myself here: in the MIR dumps (for this example) right after copy coalescing the copy is redundant even at vregs</div><div><br></div><div><span style="font-family:monospace">  %14:gpr = COPY %0     <br>  BEQ %6, $x0, %bb.3    <br>  PseudoBR %bb.1        <br>                        <br>bb.1.for.body.preheader:<br>  %14:gpr = COPY %0</span></div><div><br></div><div>Kind regards,<br></div></div>