[Beignet] [PATCH] Use -O1 when -cl-opt-disable, for inline function.
Zhigang Gong
zhigang.gong at linux.intel.com
Wed Nov 27 19:14:30 PST 2013
LGTM, pushed, thanks.
On Thu, Nov 28, 2013 at 11:00:43AM +0800, Yang Rong wrote:
>
> Signed-off-by: Yang Rong <rong.r.yang at intel.com>
> ---
> backend/src/backend/program.cpp | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/backend/src/backend/program.cpp b/backend/src/backend/program.cpp
> index 8e80bbb..751c11d 100644
> --- a/backend/src/backend/program.cpp
> +++ b/backend/src/backend/program.cpp
> @@ -503,6 +503,8 @@ namespace gbe {
> args.push_back("-fno-builtin");
> if(bOpt)
> args.push_back("-O2");
> + else
> + args.push_back("-O1");
> if(bFastMath)
> args.push_back("-D __FAST_RELAXED_MATH__=1");
> #if LLVM_VERSION_MINOR <= 2
> --
> 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