Top 3 Performance Trade-offs of Loop Unrolling

Despite benefits, loop unrolling can lead to increased code size, potentially causing instruction cache misses, higher register pressure which may result in costly register spilling to memory, and diminishing returns if unrolled too aggressively.

Sources

Open the full topic