[flang][NFC] Removed unneeded engineering option. (#122305)

This commit is contained in:
Slava Zakharin 2025-01-10 09:28:03 -08:00 committed by GitHub
parent 0afee850de
commit beba4b08f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 9 deletions

View File

@ -28,11 +28,6 @@ namespace hlfir {
#include "flang/Optimizer/HLFIR/Passes.h.inc"
} // namespace hlfir
static llvm::cl::opt<bool>
simplifySum("flang-simplify-hlfir-sum",
llvm::cl::desc("Expand hlfir.sum into an inline sequence"),
llvm::cl::init(true));
namespace {
class TransposeAsElementalConversion
@ -109,9 +104,6 @@ public:
llvm::LogicalResult
matchAndRewrite(hlfir::SumOp sum,
mlir::PatternRewriter &rewriter) const override {
if (!simplifySum)
return rewriter.notifyMatchFailure(sum, "SUM simplification is disabled");
hlfir::Entity array = hlfir::Entity{sum.getArray()};
bool isTotalReduction = hlfir::Entity{sum}.getRank() == 0;
mlir::Value dim = sum.getDim();

View File

@ -1,4 +1,4 @@
// RUN: fir-opt --simplify-hlfir-intrinsics -flang-simplify-hlfir-sum %s | FileCheck %s
// RUN: fir-opt --simplify-hlfir-intrinsics %s | FileCheck %s
// box with known extents
func.func @sum_box_known_extents(%arg0: !fir.box<!fir.array<2x3xi32>>) -> !hlfir.expr<2xi32> {