[PR99531] Modify pseudo class cost calculation when processing move involving the...
commita7acb6dca941db2b1c135107dac3a34a20650d5c
authorVladimir N. Makarov <vmakarov@redhat.com>
Mon, 13 Dec 2021 18:48:12 +0000 (13 13:48 -0500)
committerVladimir N. Makarov <vmakarov@redhat.com>
Mon, 13 Dec 2021 19:10:03 +0000 (13 14:10 -0500)
tree9d0f12a1eec09e10ada87c8ff5a72714f80d0ecb
parent149739c39475f3691e67aa0aee4f205f4e83392f
[PR99531] Modify pseudo class cost calculation when processing move involving the pseudo and a hard register

Pseudo class calculated on the 1st iteration should not have a
special treatment in cost calculation when processing move involving
the pseudo and a hard register.

gcc/ChangeLog:

PR target/99531
* ira-costs.c (record_operand_costs): Do not take pseudo class
calculated on the 1st iteration into account when processing move
involving the pseudo and a hard register.

gcc/testsuite/ChangeLog:

PR target/99531
* gcc.target/i386/pr99531.c: New test.
gcc/ira-costs.c
gcc/testsuite/gcc.target/i386/pr99531.c [new file with mode: 0644]