aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic-path.cc
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2024-06-21 15:40:10 +0100
committerRichard Sandiford <richard.sandiford@arm.com>2024-06-21 15:40:10 +0100
commit4a43a06c7b2bcc3402ac69d6e5ce7b8008acc69a (patch)
tree9064895fa23e9190b64f05052d62b59b20f81673 /gcc/diagnostic-path.cc
parent747a06017196b6344e3f664706a11231ba712548 (diff)
downloadgcc-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