|
20 | 20 | #include "flang/Optimizer/HLFIR/HLFIRDialect.h" |
21 | 21 | #include "flang/Optimizer/HLFIR/HLFIROps.h" |
22 | 22 | #include "flang/Optimizer/HLFIR/Passes.h" |
23 | | -#include "flang/Optimizer/OpenMP/Passes.h" |
24 | 23 | #include "flang/Optimizer/Transforms/Utils.h" |
25 | 24 | #include "mlir/Dialect/Func/IR/FuncOps.h" |
26 | 25 | #include "mlir/IR/Dominance.h" |
@@ -483,8 +482,7 @@ llvm::LogicalResult ElementalAssignBufferization::matchAndRewrite( |
483 | 482 | // Generate a loop nest looping around the hlfir.elemental shape and clone |
484 | 483 | // hlfir.elemental region inside the inner loop |
485 | 484 | hlfir::LoopNest loopNest = |
486 | | - hlfir::genLoopNest(loc, builder, extents, !elemental.isOrdered(), |
487 | | - flangomp::shouldUseWorkshareLowering(elemental)); |
| 485 | + hlfir::genLoopNest(loc, builder, extents, !elemental.isOrdered()); |
488 | 486 | builder.setInsertionPointToStart(loopNest.body); |
489 | 487 | auto yield = hlfir::inlineElementalOp(loc, builder, elemental, |
490 | 488 | loopNest.oneBasedIndices); |
@@ -555,8 +553,7 @@ llvm::LogicalResult BroadcastAssignBufferization::matchAndRewrite( |
555 | 553 | llvm::SmallVector<mlir::Value> extents = |
556 | 554 | hlfir::getIndexExtents(loc, builder, shape); |
557 | 555 | hlfir::LoopNest loopNest = |
558 | | - hlfir::genLoopNest(loc, builder, extents, /*isUnordered=*/true, |
559 | | - flangomp::shouldUseWorkshareLowering(assign)); |
| 556 | + hlfir::genLoopNest(loc, builder, extents, /*isUnordered=*/true); |
560 | 557 | builder.setInsertionPointToStart(loopNest.body); |
561 | 558 | auto arrayElement = |
562 | 559 | hlfir::getElementAt(loc, builder, lhs, loopNest.oneBasedIndices); |
@@ -654,8 +651,7 @@ llvm::LogicalResult VariableAssignBufferization::matchAndRewrite( |
654 | 651 | llvm::SmallVector<mlir::Value> extents = |
655 | 652 | hlfir::getIndexExtents(loc, builder, shape); |
656 | 653 | hlfir::LoopNest loopNest = |
657 | | - hlfir::genLoopNest(loc, builder, extents, /*isUnordered=*/true, |
658 | | - flangomp::shouldUseWorkshareLowering(assign)); |
| 654 | + hlfir::genLoopNest(loc, builder, extents, /*isUnordered=*/true); |
659 | 655 | builder.setInsertionPointToStart(loopNest.body); |
660 | 656 | auto rhsArrayElement = |
661 | 657 | hlfir::getElementAt(loc, builder, rhs, loopNest.oneBasedIndices); |
|
0 commit comments