]> git.ipfire.org Git - thirdparty/gcc.git/commit
ira: update allocated_hardreg_p[] in improve_allocation() [PR110254]
authorSurya Kumari Jangala <jskumari@linux.ibm.com>
Mon, 14 Aug 2023 14:34:56 +0000 (09:34 -0500)
committerSurya Kumari Jangala <jskumari@linux.ibm.com>
Wed, 16 Aug 2023 17:20:56 +0000 (12:20 -0500)
commit02ecc9a26324d142c5cd19d24526b9c23aabc1c3
tree9961d56ed8ff847d657f9177f1d418cacd33ee2f
parent2c907d5456ad0ccbfdcb7aa3f7a37a20a59c5c1a
ira: update allocated_hardreg_p[] in improve_allocation() [PR110254]

The improve_allocation() routine does not update the
allocated_hardreg_p[] array after an allocno is assigned a register.

If the register chosen in improve_allocation() is one that already has
been assigned to a conflicting allocno, then allocated_hardreg_p[]
already has the corresponding bit set to TRUE, so nothing needs to be
done.

But improve_allocation() can also choose a register that has not been
assigned to a conflicting allocno, and also has not been assigned to any
other allocno. In this case, allocated_hardreg_p[] has to be updated.

2023-07-21  Surya Kumari Jangala  <jskumari@linux.ibm.com>

gcc/
PR rtl-optimization/110254
* ira-color.cc (improve_allocation): Update array
allocated_hard_reg_p.
gcc/ira-color.cc