Loop Unrolling Transformation: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 56: Line 56:
By default, the transformation applies partial loop unrolling, resulting in two loops:
By default, the transformation applies partial loop unrolling, resulting in two loops:


- The first loop is the partially unrolled loop, processing multiple iterations per pass.
* The first loop is the partially unrolled loop, processing multiple iterations per pass. -
- The second loop handles any remaining iterations that do not fit into the unroll factor (cleanup loop).
* The second loop handles any remaining iterations that do not fit into the unroll factor (cleanup loop).


emmtrix Studio attempts to calculate a trip count that enables two key optimizations:
emmtrix Studio attempts to calculate a trip count that enables two key optimizations:


1. Full unrolling is applied if the unroll factor is greater than or equal to the trip count.
* Full unrolling is applied if the unroll factor is greater than or equal to the trip count.
2. The cleanup loop is omitted if the trip count is exactly divisible by the unroll factor.
* The cleanup loop is omitted if the trip count is exactly divisible by the unroll factor.


=== Example ===
=== Example ===
Bots, Bureaucrats, Interface administrators, smwadministrator, smwcurator, smweditor, Administrators
2,557

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu