https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114224
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>: https://gcc.gnu.org/g:3c89c41991d8e84d28d3aba22bb06b2712a29523 commit r15-3272-g3c89c41991d8e84d28d3aba22bb06b2712a29523 Author: Andrew Pinski <quic_apin...@quicinc.com> Date: Mon Aug 26 15:14:24 2024 -0700 expand: Add debug dump on the cost for `popcount==1` expand While working on PR 114224, I found it would be useful to dump the different costs of the expansion to make easier to understand why one was chosen over the other. Changes since v1: * v2: make the dump a single line Bootstrapped and tested on x86_64-linux-gnu. Build and tested for aarch64-linux-gnu. gcc/ChangeLog: * internal-fn.cc (expand_POPCOUNT): Dump the costs for the two choices.