]> git.ipfire.org Git - thirdparty/gcc.git/commit
[arm] Correct cost calculations involving borrow for subtracts.
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Oct 2019 19:02:50 +0000 (19:02 +0000)
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Oct 2019 19:02:50 +0000 (19:02 +0000)
commit33a6bfab928a5fe534481f233bb9678ba52b16a3
tree124a99d80876a893377cb89eb847f09c6eca55f6
parent4509f474ca4aef4d451631f8fae85676d5b0889e
[arm] Correct cost calculations involving borrow for subtracts.

The rtx_cost calculations when a borrow operation was being performed were
not being calculated correctly.  The borrow is free as part of the
subtract-with-carry instructions.  This patch recognizes the various
idioms that can describe this and returns the correct costs.

* config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
borrow operations.

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