[flang-commits] [flang] [flang] Avoid optimizing min and max if not valid type (PR #134972)
Miguel Saldivar via flang-commits
flang-commits at lists.llvm.org
Thu Apr 10 11:42:35 PDT 2025
================
@@ -988,8 +988,15 @@ class ReductionConversion : public mlir::OpRewritePattern<Op> {
op, "Currently minloc/maxloc is not handled");
} else if constexpr (std::is_same_v<Op, hlfir::MaxvalOp> ||
std::is_same_v<Op, hlfir::MinvalOp>) {
+ auto ty = op.getType();
----------------
Saldivarcher wrote:
Done 👍
https://github.com/llvm/llvm-project/pull/134972
More information about the flang-commits
mailing list