Skip to content

Commit 9ef2b29

Browse files
authored
[SYCL][Driver][NFC] Update comment about -cl-opt-disable (#11511)
Based on discussion in #11409 (comment) --------- Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 7ddaa04 commit 9ef2b29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Driver/ToolChains/SYCL.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ void SYCLToolChain::AddImpliedTargetArgs(const llvm::Triple &Triple,
11281128
// optimizations. They are passed along to the respective areas as follows:
11291129
// FPGA: -g -cl-opt-disable
11301130
// Default device AOT: -g -cl-opt-disable
1131-
// Default device JIT: -g (-cl-opt-disable is handled by the runtime)
1131+
// Default device JIT: -g (-O0 is handled by the runtime)
11321132
// GEN: -options "-g -O0"
11331133
// CPU: "--bo=-g -cl-opt-disable"
11341134
llvm::opt::ArgStringList BeArgs;
@@ -1137,7 +1137,7 @@ void SYCLToolChain::AddImpliedTargetArgs(const llvm::Triple &Triple,
11371137
if (!A->getOption().matches(options::OPT_g0))
11381138
BeArgs.push_back("-g");
11391139
// Only pass -cl-opt-disable for non-JIT, as the runtime
1140-
// handles it in that case.
1140+
// handles O0 for the JIT case.
11411141
if (Triple.getSubArch() != llvm::Triple::NoSubArch)
11421142
if (Arg *A = Args.getLastArg(options::OPT_O_Group))
11431143
if (A->getOption().matches(options::OPT_O0))

0 commit comments

Comments
 (0)