<div dir="ltr">My suggestion, given the comments on this thread, would be for someone to make a decision (or build a consensus) on what the canonical form of this kind of thing should look like, and then we just go and make everything do that :P, whether it's the result david has produced, or compare over compare, or whatever.<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 21, 2016 at 11:00 AM, Geoff Berry <span dir="ltr"><<a href="mailto:gberry@codeaurora.org" target="_blank">gberry@codeaurora.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">gberry added a comment.<br>
<br>
@reames I believe CodeGenPrepare::SinkCmpExpressions already takes care of this.<br>
<br>
@mcrosier I would guess that any cond branches that have not(c) as their condition would get simplified to use just 'c' and swap the branch targets, so I don't think this would impact the optimizations you mentioned.<br>
<br>
<br>
<a href="http://reviews.llvm.org/D19353" rel="noreferrer" target="_blank">http://reviews.llvm.org/D19353</a><br>
<br>
<br>
<br>
</blockquote></div><br></div>