<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Jun 18, 2013, at 6:08 AM, eric.lew <<a href="mailto:eirc.lew@gmail.com">eirc.lew@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">It seems there is no -enable-iv-rewrite now in llvm3.2,  and it suggest<br>-enable-load-pre, but it still does not work.<br><br>So, how to active the transform?<br></div></blockquote></div><br><div>Eric,</div><div><br></div><div>Loops are canonicalized with -loop-rotate, which implicitly calls -loop-simplify first.</div><div><br></div><div>The canonical form of the induction variables is expressed in the ScalarEvolution analysis.</div><div><br></div><div>-indvars simplifies inductions variables, mainly by eliminating sign extension, but does not rewrite them into a canonical form.</div><div><br></div><div>-Andy</div></body></html>