]> git.ipfire.org Git - thirdparty/gcc.git/commit
cprop_hardreg: Enable propagation of the stack pointer if possible
authorManolis Tsamis <manolis.tsamis@vrull.eu>
Thu, 25 May 2023 11:44:41 +0000 (13:44 +0200)
committerPhilipp Tomsich <philipp.tomsich@vrull.eu>
Thu, 15 Jun 2023 20:13:36 +0000 (22:13 +0200)
commit6a2e8dcbbd4bab374b27abea375bf7a921047800
tree024c7a8913db5f45f6206c16e6f32e5924f7ce81
parent91fb8bdb3944b78bca4f739583ff490c83a92fe7
cprop_hardreg: Enable propagation of the stack pointer if possible

Propagation of the stack pointer in cprop_hardreg is currenty
forbidden in all cases, due to maybe_mode_change returning NULL.
Relax this restriction and allow propagation when no mode change is
requested.

gcc/ChangeLog:

* regcprop.cc (maybe_mode_change): Enable stack pointer
propagation.
gcc/regcprop.cc