<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jul 7, 2011, at 2:19 AM, Lang Hames wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Enhance GVN to look though extractvalues for recognized intrinsics. This is a first step towards fixing <a href="http://llvm.org/bugs/show_bug.cgi?id=8817">http://llvm.org/bugs/show_bug.cgi?id=8817</a> .</div><div><br>
</div><div>Could someone more familiar with GVN review this and let me know whether it's reasonable to commit?</div></blockquote><br></div><div>Hi Lang,</div><div><br></div><div>I think that Owen is the best one to handle this.  In addition to handling the signed versions of these as well, does this correctly handle the case when the subtract comes first, and the cases when the overflow bit is actually used?</div><div><br></div><div>In principle, we'd want to optimize:</div><div><br></div><div>a = add i32 y, z</div><div>...</div><div>b,c = addo(y,z)</div><div><br></div><div>into:</div><div><br></div><div><div>b,c = addo(y,z)</div><div>a = b</div><div>...</div><div><br></div><div>Unfortunately, I'm not familiar enough with the GVN value table stuff to check the details of the patch, thanks for working on this though!</div><div><br></div><div>-Chris</div></div><br></body></html>