[llvm-commits] [llvm] r48474 - /llvm/trunk/lib/Transforms/Scalar/LoopUnroll.cpp

Eric Christopher echristo at apple.com
Tue Mar 18 10:07:34 PDT 2008


>
>       } else if (isa<DbgInfoIntrinsic>(I)) {
>         // Ignore debug instructions
> +      } else if (isa<CallInst>(I)) {
> +        if (isa<IntrinsicInst>(I))
> +          Size = Size + 3;
> +        else
> +          Size = Size + 10;
>       } else {
>         ++Size;
>       }
>

A comment where the magic numbers come from probably wouldn't go  
amiss :)

-eric



More information about the llvm-commits mailing list