]> git.ipfire.org Git - thirdparty/gcc.git/commit
rtl-ssa: Don't cost no-op moves
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 21 Jun 2024 14:40:10 +0000 (15:40 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Fri, 21 Jun 2024 14:40:10 +0000 (15:40 +0100)
commit4a43a06c7b2bcc3402ac69d6e5ce7b8008acc69a
tree9064895fa23e9190b64f05052d62b59b20f81673
parent747a06017196b6344e3f664706a11231ba712548
rtl-ssa: Don't cost no-op moves

No-op moves are given the code NOOP_MOVE_INSN_CODE if we plan
to delete them later.  Such insns shouldn't be costed, partly
because they're going to disappear, and partly because targets
won't recognise the insn code.

gcc/
* rtl-ssa/changes.cc (rtl_ssa::changes_are_worthwhile): Don't
cost no-op moves.
* rtl-ssa/insns.cc (insn_info::calculate_cost): Likewise.
gcc/rtl-ssa/changes.cc
gcc/rtl-ssa/insns.cc