United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8022993 : Convert MAX_UNROLL constant to LoopMaxUnroll C2 flag

Details
Type:
Enhancement
Submit Date:
2013-08-13
Status:
Resolved
Updated Date:
2013-11-19
Project Name:
JDK
Resolved Date:
2013-08-15
Component:
hotspot
OS:
generic
Sub-Component:
compiler
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs25
Fixed Versions:
hs25 (b46)

Related Reports
Backport:
Backport:

Sub Tasks

Description
C2 has max unroll limit hard coded:

#define MAX_UNROLL 16 // maximum number of unrolls for main loop

It limits size of vectors (byte vectors) which are used in AVX instructions. There is no feed back from vectorization code to loop unrolling because superword optimization is executed at the end of all loop opts. We can make policy_unroll() method more intelligent to recognize vectorization cases but it is a lot more code changes. For now just use new  LoopMaxUnroll flag instead of MAX_UNROLL constant.
                                    

Comments
No need test because just use new LoopMaxUnroll flag instead of MAX_UNROLL constant.
                                     
2013-11-19
URL:   http://hg.openjdk.java.net/hsx/hsx25/hotspot/rev/bcc4f6f54d83
User:  amurillo
Date:  2013-08-16 14:58:16 +0000

                                     
2013-08-16
URL:   http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/bcc4f6f54d83
User:  kvn
Date:  2013-08-15 03:33:16 +0000

                                     
2013-08-15



Hardware and Software, Engineered to Work Together