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 to handle perfect loop unrolling in tree_transform_and_unroll_loop


Hello, 
This patch is to handle perfect loop unrolling as
discussed in http://gcc.gnu.org/ml/gcc/2009-10/msg00333.html. 

I merged the original code into tree_transform_and_unroll_loop,
and added some code to get probability/frequency right.

This is related to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36712
A tree-level unrolling pass will just call this modified function. 
I will submit a separate patch if needed. 

2009-10-28  Bingfeng Mei <bmei@broadcom.com>

	* tree_transform_and_unroll_loop (tree_transform_and_unroll_loop):
	To handle perfect loop unrolling. (perfect_loop_unrolling_p): New function
	to check whether a loop can perfect unrolling.

Cheers,
Bingfeng Mei

Attachment: patch_loop_unrolling;size=17305;creation-date="Wed,
Description: patch_loop_unrolling


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