@@ -407,7 +407,6 @@ static void processHostEvalClauses(lower::AbstractConverter &converter,
407
407
return ;
408
408
409
409
const parser::OmpClauseList *beginClauseList = nullptr ;
410
- const parser::OmpClauseList *middleClauseList = nullptr ;
411
410
const parser::OmpClauseList *endClauseList = nullptr ;
412
411
common::visit (
413
412
common::visitors{
@@ -422,28 +421,6 @@ static void processHostEvalClauses(lower::AbstractConverter &converter,
422
421
beginClauseList =
423
422
&std::get<parser::OmpClauseList>(beginDirective.t );
424
423
425
- // For now we check if there is an inner OpenMPLoopConstruct, and
426
- // extract the size clause from there
427
- const auto &nestedOptional =
428
- std::get<std::optional<parser::NestedConstruct>>(
429
- ompConstruct.t );
430
- assert (nestedOptional.has_value () &&
431
- " Expected a DoConstruct or OpenMPLoopConstruct" );
432
- const auto *innerConstruct =
433
- std::get_if<common::Indirection<parser::OpenMPLoopConstruct>>(
434
- &(nestedOptional.value ()));
435
- if (innerConstruct) {
436
- const auto &innerLoopConstruct = innerConstruct->value ();
437
- const auto &innerBegin =
438
- std::get<parser::OmpBeginLoopDirective>(
439
- innerLoopConstruct.t );
440
- const auto &innerDirective =
441
- std::get<parser::OmpLoopDirective>(innerBegin.t );
442
- if (innerDirective.v == llvm::omp::Directive::OMPD_tile) {
443
- middleClauseList =
444
- &std::get<parser::OmpClauseList>(innerBegin.t );
445
- }
446
- }
447
424
if (auto &endDirective =
448
425
std::get<std::optional<parser::OmpEndLoopDirective>>(
449
426
ompConstruct.t )) {
@@ -457,9 +434,6 @@ static void processHostEvalClauses(lower::AbstractConverter &converter,
457
434
assert (beginClauseList && " expected begin directive" );
458
435
clauses.append (makeClauses (*beginClauseList, semaCtx));
459
436
460
- if (middleClauseList)
461
- clauses.append (makeClauses (*middleClauseList, semaCtx));
462
-
463
437
if (endClauseList)
464
438
clauses.append (makeClauses (*endClauseList, semaCtx));
465
439
};
0 commit comments