]> git.ipfire.org Git - thirdparty/gcc.git/commit
expand: Add dump for costing of positive divides
authorAndrew Pinski <quic_apinski@quicinc.com>
Wed, 4 Sep 2024 01:50:37 +0000 (18:50 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Wed, 4 Sep 2024 05:38:21 +0000 (22:38 -0700)
commitdbd0eb39c690f80e7a9bb7697aaa3f85ff4dbadd
treecc81eea7d11db91d7ecc2bd0ae1b3386d3309ca0
parent62dd893ff8a12a1d28f595b4e5bc43cf9f7d1c07
expand: Add dump for costing of positive divides

While trying to understand PR 115910 I found it was useful to print out
the two costs of doing a signed and unsigned division just like was added in
r15-3272-g3c89c41991d8e8 for popcount==1.

Bootstrapped and tested on x86_64-linux-gnu.

gcc/ChangeLog:

* expr.cc (expand_expr_divmod): Add dump of the two costs for
positive division.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/expr.cc