[Bug tree-optimization/126958] mul_hi/mul_lo match patterns could just use wi::to_wide instead of tree_fits_uhwi_p/tree_to_uhwi
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Aug 21 23:02:05 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126958
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrea Pinski <pinskia@gcc.gnu.org>:
https://gcc.gnu.org/g:9f82055b86c06511ff4f19939cbd7765bf3395fe
commit r17-3530-g9f82055b86c06511ff4f19939cbd7765bf3395fe
Author: Andrea Pinski <andrew.pinski@oss.qualcomm.com>
Date: Fri Aug 21 00:09:37 2026 -0700
match: Use wi::to_wide instead of tree_to_uhwi in mul_hi/mul_lo [PR126958]
Just a small compile time optimization because wi::to_wide should have
almost
no overhead in this case when comparing against a constant and/or a
generated
mask.
Pushed as obvious after a bootstrap/test on x86_64-linux-gnu.
PR tree-optimization/126958
gcc/ChangeLog:
* match.pd (mul_hi): Use wi::to_wide instead of
tree_fits_uhwi_p/tree_to_uhwi.
(mul_lo): Likewise.
Signed-off-by: Andrea Pinski <andrew.pinski@oss.qualcomm.com>
More information about the Gcc-bugs
mailing list