[llvm-dev] Fwd: Loop Unroll (original) (raw)

Stefanos Baziotis via llvm-dev llvm-dev at lists.llvm.org
Fri May 22 03:50:46 PDT 2020


Hi,

Maybe you can try the #pragmas. Check this: http://clang.llvm.org/docs/LanguageExtensions.html#loop-unrolling and this example: https://godbolt.org/z/rhdUDp

Best, Stefanos

Στις Παρ, 22 Μαΐ 2020 στις 12:16 μ.μ., ο/η legend xx via llvm-dev < llvm-dev at lists.llvm.org> έγραψε:

Hi,

I'm interesting in find a pass for loop unrolling in LLVM compiler. I tried opt --loop-unroll --unroll-count=4, but it don't work well. What pass I can used and how? I would also like to know if there is any way to mark the loops that I want them to be unroll Thanks you.


LLVM Developers mailing list llvm-dev at lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200522/15c9144e/attachment.html>



More information about the llvm-dev mailing list