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 {
2828#include " flang/Optimizer/HLFIR/Passes.h.inc"
2929} // namespace hlfir
3030
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-
3631namespace {
3732
3833class TransposeAsElementalConversion
@@ -109,9 +104,6 @@ class SumAsElementalConversion : public mlir::OpRewritePattern<hlfir::SumOp> {
109104 llvm::LogicalResult
110105 matchAndRewrite (hlfir::SumOp sum,
111106 mlir::PatternRewriter &rewriter) const override {
112- if (!simplifySum)
113- return rewriter.notifyMatchFailure (sum, " SUM simplification is disabled" );
114-
115107 hlfir::Entity array = hlfir::Entity{sum.getArray ()};
116108 bool isTotalReduction = hlfir::Entity{sum}.getRank () == 0 ;
117109 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
22
33// box with known extents
44func.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