]> git.ipfire.org Git - thirdparty/gcc.git/commit
expand: Add debug dump on the cost for `popcount==1` expand
authorAndrew Pinski <quic_apinski@quicinc.com>
Mon, 26 Aug 2024 22:14:24 +0000 (15:14 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Wed, 28 Aug 2024 21:03:49 +0000 (14:03 -0700)
commit3c89c41991d8e84d28d3aba22bb06b2712a29523
tree55fd9a3d6f9ba86d00deff8fb4db827c7dd55a33
parentb68561dd7925dfee1836f75d3fa8d33fff5c2498
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.
gcc/internal-fn.cc