[arm] Add -mverbose-cost-dump and de-verbosify cost dumps
commit08014e8ab9673f0625a27d1e9e374107b4dbd7c7
authorktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Dec 2017 15:53:36 +0000 (14 15:53 +0000)
committerktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Dec 2017 15:53:36 +0000 (14 15:53 +0000)
tree475f5e5d374a3348bc98cb0b228ff8165a9ff6e9
parent639ab80c916aaf682a71fb3e803239622ce6480d
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255644 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/config/arm/arm.opt