File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed
lib/Optimizer/HLFIR/Transforms Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,6 @@ namespace hlfir {
28
28
#include " flang/Optimizer/HLFIR/Passes.h.inc"
29
29
} // namespace hlfir
30
30
31
- static llvm::cl::opt<bool >
32
- simplifySum (" flang-simplify-hlfir-sum" ,
33
- llvm::cl::desc (" Expand hlfir.sum into an inline sequence" ),
34
- llvm::cl::init(true ));
35
-
36
31
namespace {
37
32
38
33
class TransposeAsElementalConversion
@@ -109,9 +104,6 @@ class SumAsElementalConversion : public mlir::OpRewritePattern<hlfir::SumOp> {
109
104
llvm::LogicalResult
110
105
matchAndRewrite (hlfir::SumOp sum,
111
106
mlir::PatternRewriter &rewriter) const override {
112
- if (!simplifySum)
113
- return rewriter.notifyMatchFailure (sum, " SUM simplification is disabled" );
114
-
115
107
hlfir::Entity array = hlfir::Entity{sum.getArray ()};
116
108
bool isTotalReduction = hlfir::Entity{sum}.getRank () == 0 ;
117
109
mlir::Value dim = sum.getDim ();
Original file line number Diff line number Diff line change 1
- // RUN: fir-opt --simplify-hlfir-intrinsics -flang-simplify-hlfir-sum %s | FileCheck %s
1
+ // RUN: fir-opt --simplify-hlfir-intrinsics %s | FileCheck %s
2
2
3
3
// box with known extents
4
4
func.func @sum_box_known_extents(%arg0: !fir.box<!fir.array<2x3xi32>>) -> !hlfir.expr<2xi32> {
You can’t perform that action at this time.
0 commit comments