[llvm-commits] [llvm] r95454 - in /llvm/trunk: lib/Transforms/Scalar/LoopUnrollPass.cpp test/CodeGen/X86/nancvt.ll

Jakob Stoklund Olesen stoklund at 2pi.dk
Fri Feb 5 16:11:11 PST 2010


On Feb 5, 2010, at 4:05 PM, Duncan Sands wrote:

> Hi Jakob,
> 
>> Don't unroll loops containing function calls.
> 
> what is the reasoning behind this?

A function call is likely to take a significant amount of time, so the relative gain from unrolling the loop is very small. The code size increase is still there, though.

/jakob





More information about the llvm-commits mailing list