aboutsummaryrefslogtreecommitdiff
path: root/gcc/debug.cc
diff options
context:
space:
mode:
authorVladimir N. Makarov <vmakarov@redhat.com>2024-11-29 14:58:47 -0500
committerVladimir N. Makarov <vmakarov@redhat.com>2024-11-29 14:59:12 -0500
commite79583cef924f5fb5de551bd61da7b5fdee5c690 (patch)
tree27c43c2fc3fe81aab12609a161806bcc217440aa /gcc/debug.cc
parent75ade6106bbe010d06e5dddf719c22d4dadd9411 (diff)
downloadgcc-e79583cef924f5fb5de551bd61da7b5fdee5c690.zip
gcc-e79583cef924f5fb5de551bd61da7b5fdee5c690.tar.gz
gcc-e79583cef924f5fb5de551bd61da7b5fdee5c690.tar.bz2
[PR117770][LRA]: Check hard regs corresponding insn operands for hard reg clobbers
When LRA processes early clobbered hard regs explicitly present in the insn description, it checks that the hard reg is also used as input. If the hard reg is not an input also, it is marked as dying. For the check LRA processed only input hard reg also explicitly present in the insn description. For given PR, the hard reg is used as input as the operand and is not present explicitly in the insn description and therefore LRA marked the hard reg as dying. This results in wrong allocation and wrong code. The patch solves the problem by processing hard regs used as the insn operand. gcc/ChangeLog: PR rtl-optimization/117770 * lra-lives.cc: Include ira-int.h. (process_bb_lives): Check hard regs corresponding insn operands for dying hard wired reg clobbers.
Diffstat (limited to 'gcc/debug.cc')
0 files changed, 0 insertions, 0 deletions