Skip to content

Commit d8bb69e

Browse files
authored
[Driver][SYCL] Fix arguments associated with -ftarget-compile-fast (#9302)
Update the arguments used when passing to 'ocloc' with -ftarget-compile-fast. Original syntax was not quite correct.
1 parent b3e2874 commit d8bb69e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

clang/lib/Driver/ToolChains/SYCL.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,8 +984,7 @@ void SYCLToolChain::AddImpliedTargetArgs(const llvm::Triple &Triple,
984984
}
985985
// -ftarget-compile-fast
986986
if (Args.hasArg(options::OPT_ftarget_compile_fast)) {
987-
BeArgs.push_back(
988-
"\"-igc_opts PartitionUnit=1,SubroutineThreshold=50000\"");
987+
BeArgs.push_back("-igc_opts 'PartitionUnit=1,SubroutineThreshold=50000'");
989988
}
990989
}
991990
if (BeArgs.empty())

clang/test/Driver/ftarget-compile-fast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
// RUN: | FileCheck -check-prefix=TARGET_COMPILE_FAST_GEN %s
99

1010
// TARGET_COMPILE_FAST_GEN: ocloc{{.*}} "-output"
11-
// TARGET_COMPILE_FAST_GEN: "-options" "{{.*}}-igc_opts PartitionUnit=1,SubroutineThreshold=50000{{.*}}"
11+
// TARGET_COMPILE_FAST_GEN: "-options" "-igc_opts 'PartitionUnit=1,SubroutineThreshold=50000'"

0 commit comments

Comments
 (0)