[LLVMdev] -indvars issues?
Andrew Trick
atrick at apple.com
Tue Jun 18 10:32:18 PDT 2013
On Jun 18, 2013, at 6:08 AM, eric.lew <eirc.lew at gmail.com> wrote:
> It seems there is no -enable-iv-rewrite now in llvm3.2, and it suggest
> -enable-load-pre, but it still does not work.
>
> So, how to active the transform?
Eric,
Loops are canonicalized with -loop-rotate, which implicitly calls -loop-simplify first.
The canonical form of the induction variables is expressed in the ScalarEvolution analysis.
-indvars simplifies inductions variables, mainly by eliminating sign extension, but does not rewrite them into a canonical form.
-Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130618/d7b66e78/attachment.html>
More information about the llvm-dev
mailing list