On Thu, Aug 27, 2020 at 03:17:45PM -0500, Segher Boessenkool wrote: > On Thu, Aug 27, 2020 at 01:51:25PM -0500, Bill Schmidt wrote: > It not the copy that is unnecessary: the preventing it *here*, manually, > is what is unnecessary.
Blame me for the original !rtx_equal_p in rs6000_call_aix that Bill copied. So does emit_move_insn prevent the copy? I can't spot where, maybe I haven't looked hard enough. If emit_move_insn doesn't prevent it, then why create useless RTL that is only going to make work for optimisation passes that remove such nops? -- Alan Modra Australia Development Lab, IBM