aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>2024-01-07 08:36:54 +0800
committerPan Li <pan2.li@intel.com>2024-01-07 09:26:36 +0800
commite74c37aab51d2350a3417f442c3a7d119b755378 (patch)
tree2d5cb9067f5a54a2dc7888e404fb1746c8227eb5
parent8c5d00f8291d718ef64c742b9c971e16f75e5074 (diff)
downloadgcc-e74c37aab51d2350a3417f442c3a7d119b755378.zip
gcc-e74c37aab51d2350a3417f442c3a7d119b755378.tar.gz
gcc-e74c37aab51d2350a3417f442c3a7d119b755378.tar.bz2
RISC-V: Use MAX instead of std::max [VSETVL PASS]
Obvious fix, Committed. gcc/ChangeLog: * config/riscv/riscv-vsetvl.cc: replace std::max by MAX.
-rw-r--r--gcc/config/riscv/riscv-vsetvl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/riscv/riscv-vsetvl.cc b/gcc/config/riscv/riscv-vsetvl.cc
index 7d748ed..df7ed14 100644
--- a/gcc/config/riscv/riscv-vsetvl.cc
+++ b/gcc/config/riscv/riscv-vsetvl.cc
@@ -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);
}