diff options
Diffstat (limited to 'gcc/rtx-vector-builder.h')
-rw-r--r-- | gcc/rtx-vector-builder.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/rtx-vector-builder.h b/gcc/rtx-vector-builder.h index ea32208..30a91e8 100644 --- a/gcc/rtx-vector-builder.h +++ b/gcc/rtx-vector-builder.h @@ -44,8 +44,8 @@ private: bool equal_p (rtx, rtx) const; bool allow_steps_p () const; bool integral_p (rtx) const; - wide_int step (rtx, rtx) const; - rtx apply_step (rtx, unsigned int, const wide_int &) const; + poly_wide_int step (rtx, rtx) const; + rtx apply_step (rtx, unsigned int, const poly_wide_int &) const; bool can_elide_p (rtx) const { return true; } void note_representative (rtx *, rtx) {} @@ -115,11 +115,11 @@ rtx_vector_builder::integral_p (rtx elt) const /* Return the value of element ELT2 minus the value of element ELT1. Both elements are known to be CONST_SCALAR_INT_Ps. */ -inline wide_int +inline poly_wide_int rtx_vector_builder::step (rtx elt1, rtx elt2) const { - return wi::sub (rtx_mode_t (elt2, GET_MODE_INNER (m_mode)), - rtx_mode_t (elt1, GET_MODE_INNER (m_mode))); + return (wi::to_poly_wide (elt2, GET_MODE_INNER (m_mode)) + - wi::to_poly_wide (elt1, GET_MODE_INNER (m_mode))); } #endif |