aboutsummaryrefslogtreecommitdiff
path: root/gcc/iterator-utils.h
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2020-12-13 10:41:07 +0000
committerRichard Sandiford <richard.sandiford@arm.com>2020-12-13 10:41:07 +0000
commit6ad972ece13f01f88a699b1a9f784c4166061901 (patch)
tree7c081d0882b5608a71f30b50d68b0894296a193b /gcc/iterator-utils.h
parentda40a69c9ef8784d37c968ac37daf6f8883d2755 (diff)
downloadgcc-6ad972ece13f01f88a699b1a9f784c4166061901.zip
gcc-6ad972ece13f01f88a699b1a9f784c4166061901.tar.gz
gcc-6ad972ece13f01f88a699b1a9f784c4166061901.tar.bz2
rtlanal: Remove noop_move_p REG_EQUAL condition
noop_move_p currently keeps any instruction that has a REG_EQUAL note, on the basis that the equality might be useful in future. But this creates a perverse incentive not to add potentially-useful REG_EQUAL notes, in case they prevent an instruction from later being removed as dead. The condition originates from flow.c:life_analysis_1 and predates the changes tracked by the current repository (1992). It probably made sense when most optimisations were done on RTL rather than FE trees, but it seems counterproductive now. gcc/ * rtlanal.c (noop_move_p): Don't check for REG_EQUAL notes.
Diffstat (limited to 'gcc/iterator-utils.h')
0 files changed, 0 insertions, 0 deletions