Compiler Optimizations
Reorder code to
- Fuse loops
- Combine aggregates
- Combine broadcasts
loop X max, Y max, X min, Y min
aggregate(maxX, maxY, minX, minY)
broadcast(maxX, maxY, minX, minY)
• Code runs about 4 times faster
Notice: Such optimizations
result from the compiler’s
effectiveness, not directly