[Beignet] [PATCH 2/3] Change optimize level to -O2, to avoid loopunswitch opt.

Zhigang Gong zhigang.gong at linux.intel.com
Wed Oct 9 02:34:17 PDT 2013


LGTM, thanks.

On Wed, Oct 09, 2013 at 02:36:26PM +0800, Yang Rong wrote:
> 
> Signed-off-by: Yang Rong <rong.r.yang at intel.com>
> ---
>  backend/src/backend/program.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/backend/src/backend/program.cpp b/backend/src/backend/program.cpp
> index 60c6112..647a958 100644
> --- a/backend/src/backend/program.cpp
> +++ b/backend/src/backend/program.cpp
> @@ -475,7 +475,7 @@ namespace gbe {
>      // XXX we haven't implement those builtin functions,
>      // so disable it currently.
>      args.push_back("-fno-builtin");
> -    if(bOpt)  args.push_back("-O3");
> +    if(bOpt)  args.push_back("-O2");
>  #if LLVM_VERSION_MINOR <= 2
>      args.push_back("-triple");
>      args.push_back("nvptx");
> -- 
> 1.8.1.2
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list