]> git.ipfire.org Git - thirdparty/gcc.git/commit
[LRA]: Fix elimination recognition for INC/DEC RTL master trunk
authorVladimir N. Makarov <vmakarov@redhat.com>
Tue, 28 Apr 2026 13:02:13 +0000 (09:02 -0400)
committerVladimir N. Makarov <vmakarov@redhat.com>
Tue, 28 Apr 2026 18:09:59 +0000 (14:09 -0400)
commit102b3cc3738f5db788134989bdc93b817316f320
treedd27e56e8b8655120b4f7f5b519a767d63143bbd
parent88d833253000ecf894d7ab09cee56a50971cb8c7
[LRA]: Fix elimination recognition for INC/DEC RTL

There is a typo when we processing {PRE,POST}_{INC,DEC} and
{PRE,POST}_MODIFY to prevent elimination of hard reg operand.  The
condition actually makes to consider pseudos instead of hard reg.  The
patch fixes this.

gcc/ChangeLog:

* lra-eliminations.cc (mark_not_eliminable): Fix condition to
consider hard regs instead of pseudos for INC/DEC/MODIFY operands.
gcc/lra-eliminations.cc