[arm] Add -mverbose-cost-dump and de-verbosify cost dumps
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Thu, 14 Dec 2017 15:53:36 +0000 (15:53 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Thu, 14 Dec 2017 15:53:36 +0000 (15:53 +0000)
commit636f605cbf67b82baf3726d2e92607cd39004d37
tree475f5e5d374a3348bc98cb0b228ff8165a9ff6e9
parente2c6cfac8e7b9e92e0d51332d6143dc47a982020
[arm] Add -mverbose-cost-dump and de-verbosify cost dumps

This patch adds an -mverbose-cost-dump option, similar to the one in aarch64.
It makes the RTX cost dump print the RTX we're costing in the backend, as well as its cost.
This can be distracting in other cost-related RTL dumps like combine's.

So now we don't dump the backend information by default, but provide the power-user option -mverbose-cost-dump
to enable the old verbose dumping.

This option is for GCC developers debugging the compiler only, so no documentation are added.
It's also trivially simple in functionality so no test is added either.

Bootstrapped and tested on arm-none-linux-gnueabihf.

Committed to trunk.

* config/arm/arm.opt (mverbose-cost-dump): New option.
* config/arm/arm.c (arm_rtx_costs): Use it.

From-SVN: r255644
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/config/arm/arm.opt