This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Enable -funroll-loops at -O3


This seems like something which we should do as it is a huge boost for most
code now. C++ code gets the biggest benefit as we do unrolling on the tree
level and we can sometimes cause us not to store on the stack the calculation.
For -O2/-Os we should enable complete unrolling only if it is a size win but
I have not looked on doing that yet because there are a huge amount of C++
code which be helped by that.


OK? Bootstrapped and tested on powerpc-darwin with no regressions.

Thanks,
Andrew Pinski

ChangeLog:
	* opts.c (decode_options): Enable -funroll-loops at -O3 and above.

Attachment: temp.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]