[flang][NFC] Removed unneeded engineering option. (#122305)
This commit is contained in:
parent
0afee850de
commit
beba4b08f7
@ -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();
|
||||
|
@ -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> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user