Mercurial > hg > graal-compiler
diff src/gpu/hsail/vm/hsailKernelArguments.hpp @ 14969:a6c144380ce7
HSAIL: added UseHSAILDeoptimization VM option for disabling HSAIL deopt support
Contributed-by: Eric Caspole <eric.caspole@amd.com>
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 04 Apr 2014 12:22:49 +0200 |
parents | 3e9a960f0da1 |
children | 06eedda53e14 |
line wrap: on
line diff
--- a/src/gpu/hsail/vm/hsailKernelArguments.hpp Fri Apr 04 12:05:41 2014 +0200 +++ b/src/gpu/hsail/vm/hsailKernelArguments.hpp Fri Apr 04 12:22:49 2014 +0200 @@ -79,11 +79,13 @@ assert(pushed == true, "arg push failed"); } virtual void pushTrailingArgs() { - // Last argument is the exception info block - if (TraceGPUInteraction) { - tty->print_cr("[HSAIL] exception block=" PTR_FORMAT, _exceptionHolder); + if (UseHSAILDeoptimization) { + // Last argument is the exception info block + if (TraceGPUInteraction) { + tty->print_cr("[HSAIL] exception block=" PTR_FORMAT, _exceptionHolder); + } + pushObject(_exceptionHolder); } - pushObject(_exceptionHolder); } // For kernel arguments we don't pass the final int parameter