<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Mar 3, 2010, at 11:52 PM, Paul Davey wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="gmail_quote">sorry forgot to change address :/<br>Rob:<div><br></div><div>from original post:</div><div><div></div><div class="h5"><div><br></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">I would expect the following optimizations, but didn't find them in the<br>

code:<br>x  + 0 = x<br>x * 0 = 0<br>x * 1 = 1<br>x * -1 = -x</span></div>
</div></div></div></blockquote></div><br><div>Take a look at lib/Analysis/InstructionSimplify.cpp</div><div><br></div><div>-Chris</div></body></html>