[llvm-commits] [llvm] r170004 - in /llvm/trunk: include/llvm/LinkAllPasses.h include/llvm/Transforms/Vectorize.h lib/Transforms/IPO/PassManagerBuilder.cpp lib/Transforms/Vectorize/LoopVectorize.cpp lib/Transforms/Vectorize/Vectorize.cpp test/Transforms/LoopVectorize/small-size.ll

Chandler Carruth chandlerc at google.com
Wed Dec 12 11:36:20 PST 2012


On Wed, Dec 12, 2012 at 11:29 AM, Nadav Rotem <nrotem at apple.com> wrote:

> @@ -93,8 +91,15 @@
>        VTTI = TTI->getVectorTargetTransformInfo();
>      // Use the cost model.
>      LoopVectorizationCostModel CM(L, SE, &LVL, VTTI);
> +
> +    // Check the function attribues to find out if this function should be
> +    // optimized for size.
> +    Function *F = L->getHeader()->getParent();
> +    bool OptForSize =
> +    F->getFnAttributes().hasAttribute(Attributes::OptimizeForSize);
>

This indent seems odd...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121212/54b1683a/attachment.html>


More information about the llvm-commits mailing list