<div dir="ltr">This option use is questionable. It gains performance on x86 with gcc 4.8 and gcc 4.9, has no or slightly negative effect with gcc 4.8 on ARM and some positive effect on ARM with gcc 4.9. With arm-gcc 4.7 I got 15% performance decrease with or without it. arm-gcc 4.7 is just a bad arm compiler (but much better than gcc 4.6). It's all about ~5% performance deviation.<br>We could as well run<br>CFLAGS=-funroll-loops ./configure ... <br>and add flags in <a href="http://configure.ac">configure.ac</a>. For now it just works better out-of-the-box with gcc-4.9. But it may change in the future. Can't say anything about other compilers (not gcc). I hope that newer compilers (in general) will handle loop unrolling smarter.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-06 19:15 GMT+03:00 Jean-Baptiste Kempf <span dir="ltr"><<a href="mailto:jb@videolan.org" target="_blank">jb@videolan.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sure, but this should be tested before being enabled.<br>
<br>
On 26 Jun, glenvt18 wrote :<br>
<div><div class="h5">> -funroll-loops adds 2-3% on x86 and 5% on arm with gcc-4.9.<br>
> ---<br>
>  <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> | 2 +-<br>
>  1 file changed, 1 insertion(+), 1 deletion(-)<br>
><br>
> diff --git a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
> index f978a02..c3c9c7d 100644<br>
> --- a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
> +++ b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
> @@ -6,7 +6,7 @@ AC_ARG_ENABLE(debug, AC_HELP_STRING(--enable-debug, [Enable debug]), enable_debu<br>
>  if test "$enable_debug" = "yes" ; then<br>
>      GCC_CFLAGS="$CFLAGS -g -DDVBCSA_DEBUG -D_XOPEN_SOURCE=600"<br>
>  else<br>
> -    GCC_CFLAGS="$CFLAGS -O3 -fomit-frame-pointer -D_XOPEN_SOURCE=600"<br>
> +    GCC_CFLAGS="$CFLAGS -O3 -funroll-loops -fomit-frame-pointer -D_XOPEN_SOURCE=600"<br>
>  fi<br>
><br>
>  AC_ARG_ENABLE(uint32, AC_HELP_STRING(--enable-uint32, [Use native 32 bits integers for bitslice]), enable_uint32=$enableval, enable_uint32=no)<br>
> --<br>
> 1.9.1<br>
><br>
</div></div>> _______________________________________________<br>
> vlc-devel mailing list<br>
> To unsubscribe or modify your subscription options:<br>
> <a href="https://mailman.videolan.org/listinfo/vlc-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
With my kindest regards,<br>
<br>
--<br>
Jean-Baptiste Kempf<br>
<a href="http://www.jbkempf.com/" rel="noreferrer" target="_blank">http://www.jbkempf.com/</a> - +33 672 704 734<br>
Sent from my Electronic Device<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a><br>
</font></span></blockquote></div><br></div>