]> git.ipfire.org Git - thirdparty/gcc.git/commit
rtl-ssa: Provide easier access to debug uses [PR113089]
authorAlex Coplan <alex.coplan@arm.com>
Tue, 16 Jan 2024 21:20:20 +0000 (21:20 +0000)
committerAlex Coplan <alex.coplan@arm.com>
Tue, 23 Jan 2024 16:49:13 +0000 (16:49 +0000)
commitcef6031694db1d68cf876e16e79dc5c2b9f649bd
tree056e68758e0ed1bc813fb3b2d41fd77d9ff9f01d
parent639ae543449a8d6525303458497bd4b897660ec3
rtl-ssa: Provide easier access to debug uses [PR113089]

This patch adds some accessors to set_info and use_info to make it
easier to get at and iterate through uses in debug insns.

It is used by the aarch64 load/store pair fusion pass in a subsequent
patch to fix PR113089, i.e. to update debug uses in the pass.

gcc/ChangeLog:

PR target/113089
* rtl-ssa/accesses.h (use_info::next_debug_insn_use): New.
(debug_insn_use_iterator): New.
(set_info::first_debug_insn_use): New.
(set_info::debug_insn_uses): New.
* rtl-ssa/member-fns.inl (use_info::next_debug_insn_use): New.
(set_info::first_debug_insn_use): New.
(set_info::debug_insn_uses): New.
gcc/rtl-ssa/accesses.h
gcc/rtl-ssa/member-fns.inl