https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129290
Bug ID: 129290
Summary: Get rid of int_cst_value and cst_and_fits_in_hwi
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: rguenth at gcc dot gnu.org
Target Milestone: ---
It's dubious when those are used over tree_fits_[su]hwi.
There might be value in a restricted form of tree_fits_shwi guaranteeing
that its absolute also fits and is computable with abs_hwi (thus exclude
HOST_WIDE_INT_MIN) - at least dataref analysis could make use of that
for its lambda_val type.