Skip to content

Commit 54deb09

Browse files
authored
[SYCL-MLIR}: Remove unnecessary code (#7400)
Signed-off-by: Tiotto, Ettore <[email protected]>
1 parent 17e1b92 commit 54deb09

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

polygeist/tools/cgeist/Lib/clang-mlir.cc

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,14 +2170,7 @@ MLIRASTConsumer::getOrCreateGlobal(const ValueDecl &VD, std::string Prefix,
21702170

21712171
MLIRScanner MS(*this, module, LTInfo);
21722172
mlir::Block B;
2173-
// In case of device function, we will put the block in the forefront of
2174-
// the GPU module, else the block will go at the forefront of the main
2175-
// module.
2176-
if (FuncContext == FunctionContext::SYCLDevice) {
2177-
B.moveBefore(getDeviceModule(*module).getBody());
2178-
MS.getBuilder().setInsertionPointToStart(&B);
2179-
} else
2180-
MS.setEntryAndAllocBlock(&B);
2173+
MS.setEntryAndAllocBlock(&B);
21812174

21822175
OpBuilder Builder(module->getContext());
21832176
Builder.setInsertionPointToEnd(&B);

0 commit comments

Comments
 (0)