Loading... (original) (raw)

With this change we leverage superword unrolling queries and superword to stage re-entrance to ideal loop optimization. We do this when superword succeeds on vectorizing a loop which was unroll query mapped. When we re-enter ideal loop optimization, we have already done all major optimizations such as peeling, splitting, rce and superword on the vector map candidate loop. Thus we only unroll the loop. We utilize the standard loop unrolling environment to accomplish this with default setting and any applicable user settings. In this way we leverage unroll factors from the baseline loop which are much larger to obtain optimum throughput on x86 architectures. The uplift range on SpecJvm2008 is seen on scimark.lu.{small|large} with uplift noted at 3% and 8% respectively. We see as much as 1.5x uplift on vector centric micros like reductions on default optimizations.

backported by

Backport - A issue that is required to port a Bug or Feature into another product release. This issue type is generally associated with the main Bug/Feature to represent each individual release of the port. JDK-8135603 Vectorized loop unrolling

relates to

Enhancement - null JDK-8149421 Vectorized Post Loops

Enhancement - null JDK-8080325 SuperWord loop unrolling analysis