diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2024-06-21 15:40:10 +0100 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2024-06-21 15:40:10 +0100 |
commit | 4a43a06c7b2bcc3402ac69d6e5ce7b8008acc69a (patch) | |
tree | 9064895fa23e9190b64f05052d62b59b20f81673 /gcc/diagnostic-path.cc | |
parent | 747a06017196b6344e3f664706a11231ba712548 (diff) | |
download | gcc-4a43a06c7b2bcc3402ac69d6e5ce7b8008acc69a.zip gcc-4a43a06c7b2bcc3402ac69d6e5ce7b8008acc69a.tar.gz gcc-4a43a06c7b2bcc3402ac69d6e5ce7b8008acc69a.tar.bz2 |
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.
Diffstat (limited to 'gcc/diagnostic-path.cc')
0 files changed, 0 insertions, 0 deletions