8.64 --diag_warning=optimizations

Sets high-level optimization diagnostic messages to have Warning severity.


By default, optimization messages have Remark severity.


The compiler performs certain high-level vector and scalar optimizations when compiling at the optimization level -O3 -Otime, for example, loop unrolling. Use this option to display diagnostic messages relating to these high-level optimizations.


int factorial(int n)
    int result=1;
    while (n > 0)
        result *= n--;
    return result;

Compiling this code with the options --vectorize --cpu=Cortex-A8 -O3 -Otime --diag_warning=optimizations generates optimization warning messages.

Non-ConfidentialPDF file icon PDF versionARM DUI0472M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.