]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PR104971] LRA: check live hard regs to remove a dead insn
authorVladimir N. Makarov <vmakarov@redhat.com>
Fri, 25 Mar 2022 16:22:08 +0000 (12:22 -0400)
committerVladimir N. Makarov <vmakarov@redhat.com>
Fri, 25 Mar 2022 16:30:54 +0000 (12:30 -0400)
commit25725506b85f478076770942d76799c54310c696
treebb8caa9303d8a522658055ce9c7b5c189d2973dc
parentfe705dce2e1e3e4e5e0c69d7f9adaf7f2777cdc8
[PR104971] LRA: check live hard regs to remove a dead insn

LRA removes insn modifying sp for given PR test set.  We should also have
checked living hard regs to prevent this.  The patch fixes this.

gcc/ChangeLog:

PR middle-end/104971
* lra-lives.cc (process_bb_lives): Check hard_regs_live for hard
regs to clear remove_p flag.
gcc/lra-lives.cc