Skip to content

Commit 7ed02b0

Browse files
committed
Address feedback
Signed-off-by: Julian Oppermann <[email protected]>
1 parent 89098b4 commit 7ed02b0

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

sycl-jit/jit-compiler/lib/rtc/DeviceCompilation.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,9 @@ llvm::Expected<PostLinkResult> jit_compiler::performPostLink(
451451
MDesc = std::move(ESIMDSplits.front());
452452

453453
if (MDesc.isESIMD()) {
454-
// TODO: We're assuming ESIMD lowering is not deactivated (why would it?).
454+
// `sycl-post-link` has a `-lower-esimd` option, but there's no clang driver
455+
// option to influence it. Rather, the driver sets it unconditionally in the
456+
// multi-file output mode, which we are mimicking here.
455457
lowerEsimdConstructs(MDesc, PerformOpts);
456458
}
457459

sycl-jit/jit-compiler/lib/rtc/ESIMD.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void jit_compiler::lowerEsimdConstructs(module_split::ModuleDesc &MD,
5252
FunctionPassManager MainFPM;
5353
MainFPM.addPass(ESIMDLowerLoadStorePass{});
5454

55-
if (!PerformOpts) {
55+
if (PerformOpts) {
5656
MainFPM.addPass(SROAPass(SROAOptions::ModifyCFG));
5757
MainFPM.addPass(EarlyCSEPass(true));
5858
MainFPM.addPass(InstCombinePass{});

sycl-jit/jit-compiler/lib/rtc/ESIMD.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace jit_compiler {
1515

1616
// Runs a pass pipeline to lower ESIMD constructs on the given split model,
17-
// which may only contain ESIMD entrypoints. This is a copy of the similar
17+
// which must only contain ESIMD entrypoints. This is a copy of the similar
1818
// function in `sycl-post-link`.
1919
void lowerEsimdConstructs(llvm::module_split::ModuleDesc &MD, bool PerformOpts);
2020

0 commit comments

Comments
 (0)