Skip to content

Commit e5d5382

Browse files
[clang][SYCL] Remove redundant default opt level in clang toolchain (#18595)
This is defined in the a few lines before [here](https://github.com/intel/llvm/blob/e7ab07d4a827e1d3cb121a27acb2d519dd477465/clang/lib/Driver/ToolChains/Clang.cpp#L5676).
1 parent cf994bf commit e5d5382

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5742,10 +5742,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
57425742
CmdArgs.push_back("-Wno-sycl-strict");
57435743
}
57445744

5745-
// Set O2 optimization level by default
5746-
if (!Args.getLastArg(options::OPT_O_Group))
5747-
CmdArgs.push_back("-O2");
5748-
57495745
// Add the integration header option to generate the header.
57505746
StringRef Header(D.getIntegrationHeader(Input.getBaseInput()));
57515747
if (!Header.empty()) {

0 commit comments

Comments
 (0)