Re: [PATCH 2/6] rtl-ssa: Don't cost no-op moves

2024-06-21 Thread Jeff Law
On 6/20/24 7:34 AM, Richard Sandiford wrote: 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

[PATCH 2/6] rtl-ssa: Don't cost no-op moves

2024-06-20 Thread Richard Sandiford
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