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.
Open the full topic