aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-range.h
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2023-10-25 10:39:50 +0100
committerRichard Sandiford <richard.sandiford@arm.com>2023-10-25 10:39:50 +0100
commitd5e0321c3f423e307f063c51a6e0795d9daa9309 (patch)
tree3d51759283a38678c3bb9265e00d313c9b81d8de /gcc/value-range.h
parent01b42e9880838e9e4f9d8b419104e8a53dc4c782 (diff)
downloadgcc-d5e0321c3f423e307f063c51a6e0795d9daa9309.zip
gcc-d5e0321c3f423e307f063c51a6e0795d9daa9309.tar.gz
gcc-d5e0321c3f423e307f063c51a6e0795d9daa9309.tar.bz2
rtl-ssa: Create REG_UNUSED notes after all pending changes
Unlike REG_DEAD notes, REG_UNUSED notes need to be kept free of false positives by all passes. function_info::change_insns does this by removing all REG_UNUSED notes, and then using add_reg_unused_notes to add notes back (or create new ones) where appropriate. The problem was that it called add_reg_unused_notes on the fly while updating each instruction, which meant that the information for later instructions in the change set wasn't up to date. This patch does it in a separate loop instead. gcc/ * rtl-ssa/changes.cc (function_info::apply_changes_to_insn): Remove call to add_reg_unused_notes and instead... (function_info::change_insns): ...use a separate loop here.
Diffstat (limited to 'gcc/value-range.h')
0 files changed, 0 insertions, 0 deletions