]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Use MAX instead of std::max [VSETVL PASS]
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Sun, 7 Jan 2024 00:36:54 +0000 (08:36 +0800)
committerPan Li <pan2.li@intel.com>
Sun, 7 Jan 2024 01:26:36 +0000 (09:26 +0800)
Obvious fix, Committed.

gcc/ChangeLog:

* config/riscv/riscv-vsetvl.cc: replace std::max by MAX.

gcc/config/riscv/riscv-vsetvl.cc

index 7d748edc0eff0185285ea3dbec1e7a705156e64e..df7ed149388a065d5721aec3405cf0aa87e3b148 100644 (file)
@@ -1668,7 +1668,7 @@ private:
   }
   inline void use_max_sew (vsetvl_info &prev, const vsetvl_info &next)
   {
-    auto max_sew = std::max (prev.get_sew (), next.get_sew ());
+    int max_sew = MAX (prev.get_sew (), next.get_sew ());
     prev.set_sew (max_sew);
     use_min_of_max_sew (prev, next);
   }
@@ -1702,7 +1702,7 @@ private:
   inline void use_max_sew_and_lmul_with_prev_ratio (vsetvl_info &prev,
                                                    const vsetvl_info &next)
   {
-    auto max_sew = std::max (prev.get_sew (), next.get_sew ());
+    int max_sew = MAX (prev.get_sew (), next.get_sew ());
     prev.set_vlmul (calculate_vlmul (max_sew, prev.get_ratio ()));
     prev.set_sew (max_sew);
   }