Fix idiv latencies for znver3
authorJan Hubicka <jh@suse.cz>
Thu, 18 Mar 2021 16:15:34 +0000 (17:15 +0100)
committerJan Hubicka <jh@suse.cz>
Thu, 18 Mar 2021 16:15:34 +0000 (17:15 +0100)
commitab03c0d5753549f1a78eeb706510b55fb97c8651
tree57dcd87df1c2c19386d2afd6891923322205a87a
parentd9f0ade001533c9544bf2153b6baa8844ec0bee4
Fix idiv latencies for znver3

update costs of integer divides to match actual latencies (the scheduler model
already does the right thing).  It is essentially no-op, since we end up
expanding idiv for all sensible constants, so this only may end up disabling
vectorization in some cases, but I did not find any such examples.  However in
general it is better ot have actual latencies than random numbers.

gcc/ChangeLog:

2021-03-18  Jan Hubicka  <hubicka@ucw.cz>

* config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
integer divides1.
gcc/config/i386/x86-tune-costs.h