<div dir="ltr">On Tue, Apr 9, 2013 at 9:12 PM, David Majnemer <span dir="ltr"><<a href="mailto:david.majnemer@gmail.com" target="_blank">david.majnemer@gmail.com</a>></span> wrote:<br><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"><div dir="ltr">Hello,<div><br></div><div>The attached patch allows LLVM to optimize sequences like the </div><div><br></div>
<div>%add = add nsw i32 %x, 1</div><div><div>%cmp = icmp sgt i32 %add, %y</div>
<div><br></div><div>into:</div><div><br></div><div>%cmp = icmp sge i32 %x, %y</div><div><br></div><div>as well as:</div><div><br></div><div>%add1 = add nsw i32 %x, 20<br></div><div>
%add2 = add nsw i32 %y, 57<br></div><div>%cmp = icmp sge i32 %add1, %add2<br></div><div><br></div><div>into:</div><div><br></div><div>%add = add nsw i32 %y, 37</div><div>%cmp = icmp sle i32 %cmp, %x</div>
<div><br></div><div>Patches are attached and apply cleanly on r179146</div></div></div></blockquote><div><br></div><div style>LGTM.</div><div style><br></div><div style>I am not sure if there is a general owner for InstCombine that should have a look over this as well though.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Thanks,</div><div>David Majnemer</div></div></div>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Saleem Abdulrasool<br>compnerd (at) compnerd (dot) org
</div></div>