]> git.ipfire.org Git - thirdparty/gcc.git/commit
i386: Add clear_ratio to processor_costs
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Oct 2019 14:34:15 +0000 (14:34 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Oct 2019 14:34:15 +0000 (14:34 +0000)
commit4fdf07df58f8299d52c0ae4e0d9833c8f4247b24
treea0f9e6750cfcca0834f5fa08a27d27c713c45153
parent2bd0f173113ab286c55c94f4867af3965797de0d
i386: Add clear_ratio to processor_costs

i386.h has

 #define CLEAR_RATIO(speed) ((speed) ? MIN (6, ix86_cost->move_ratio) : 2)

It is impossible to have CLEAR_RATIO > 6.  This patch adds clear_ratio
to processor_costs, sets it to the minimum of 6 and move_ratio in all
cost models and defines CLEAR_RATIO with clear_ratio.

* config/i386/i386.h (processor_costs): Add clear_ratio.
(CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
* config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
of 6 and move_ratio in all cost models.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@277114 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/i386/i386.h
gcc/config/i386/x86-tune-costs.h