aboutsummaryrefslogtreecommitdiff
path: root/gcc/range-op-mixed.h
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2023-10-26 10:00:16 -0400
committerAldy Hernandez <aldyh@redhat.com>2023-10-26 12:52:15 -0400
commit848b5f3ab79c5c13ea60ad5a213e1dca7f7a7002 (patch)
treeccdc593079c8769513b4fee62791ebe28cc3fdcb /gcc/range-op-mixed.h
parent24e97ac46c24060a1a5a2ce8ebc842239006c405 (diff)
downloadgcc-848b5f3ab79c5c13ea60ad5a213e1dca7f7a7002.zip
gcc-848b5f3ab79c5c13ea60ad5a213e1dca7f7a7002.tar.gz
gcc-848b5f3ab79c5c13ea60ad5a213e1dca7f7a7002.tar.bz2
[range-ops] Remove unneeded parameters from rv_fold.
Now that the floating point version of rv_fold calculates its result in an frange, we can remove the superfluous LB, UB, and MAYBE_NAN arguments. gcc/ChangeLog: * range-op-float.cc (range_operator::fold_range): Remove superfluous code. (range_operator::rv_fold): Remove unneeded arguments. (operator_plus::rv_fold): Same. (operator_minus::rv_fold): Same. (operator_mult::rv_fold): Same. (operator_div::rv_fold): Same. * range-op-mixed.h: Remove lb, ub, and maybe_nan arguments from rv_fold methods. * range-op.h: Same.
Diffstat (limited to 'gcc/range-op-mixed.h')
-rw-r--r--gcc/range-op-mixed.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/range-op-mixed.h b/gcc/range-op-mixed.h
index ccaa2c2..45e11df 100644
--- a/gcc/range-op-mixed.h
+++ b/gcc/range-op-mixed.h
@@ -415,8 +415,6 @@ private:
const wide_int &lh_ub, const wide_int &rh_lb,
const wide_int &rh_ub) const final override;
void rv_fold (frange &r, tree type,
- REAL_VALUE_TYPE &lb, REAL_VALUE_TYPE &ub,
- bool &maybe_nan,
const REAL_VALUE_TYPE &lh_lb, const REAL_VALUE_TYPE &lh_ub,
const REAL_VALUE_TYPE &rh_lb, const REAL_VALUE_TYPE &rh_ub,
relation_kind) const final override;
@@ -485,8 +483,6 @@ private:
const wide_int &lh_ub, const wide_int &rh_lb,
const wide_int &rh_ub) const final override;
void rv_fold (frange &r, tree type,
- REAL_VALUE_TYPE &lb, REAL_VALUE_TYPE &ub,
- bool &maybe_nan,
const REAL_VALUE_TYPE &lh_lb, const REAL_VALUE_TYPE &lh_ub,
const REAL_VALUE_TYPE &rh_lb, const REAL_VALUE_TYPE &rh_ub,
relation_kind) const final override;
@@ -556,8 +552,6 @@ public:
const wide_int &w1) const final override;
void rv_fold (frange &r, tree type,
- REAL_VALUE_TYPE &lb, REAL_VALUE_TYPE &ub,
- bool &maybe_nan,
const REAL_VALUE_TYPE &lh_lb, const REAL_VALUE_TYPE &lh_ub,
const REAL_VALUE_TYPE &rh_lb, const REAL_VALUE_TYPE &rh_ub,
relation_kind kind) const final override;