[LLVMdev] Loop Unroll a constant number of times?
ryta1203 at gmail.com
Wed Feb 1 09:49:47 PST 2012
Thanks. Unfortunately, the runtime won't really work for what I'm doing
but it seems that I can statically unroll just fine for the most part.
On Wed, Feb 1, 2012 at 8:38 AM, Andrew Trick <atrick at apple.com> wrote:
> On Jan 31, 2012, at 5:16 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> > Is it possible to unroll a loop (forcibly if necessary) with llvm
> (possibly the -loop-unroll pass) a constant number of times.
> > I believe that I read that the -unroll-count=x option was removed,
> correct? So is there some other way to do this or is this just not possible
> in llvm?
> See clang -mllvm -help-hidden. If that doesn't work, llc -help-hidden.
> Probably want something like -mllvm -unroll-runtime -mllvm -unroll-count=N.
> As with any experimental options, look at the source, and -mllvm
> -debug-only=loop-unroll output to understand what it's doing.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev