This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, rtl] PR middle-end/78016, keep REG_NOTE order during insn copy
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Jiong Wang <jiong dot wang at foss dot arm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Bernd Schmidt <bschmidt at redhat dot com>
- Date: Thu, 03 Nov 2016 13:06:56 +0100
- Subject: Re: [Patch, rtl] PR middle-end/78016, keep REG_NOTE order during insn copy
- Authentication-results: sourceware.org; auth=none
- References: <1f9dd2ba-6a92-3afc-a6fb-d4be914ab239@foss.arm.com> <ab0a621c-432c-4302-7538-3ee186311968@redhat.com> <ce4fbb2c-3a53-84f5-c6c8-d59d9969cf71@foss.arm.com>
> What's your decision on this?
I think that we ought to standardize on a single order for note copying in the
RTL middle-end and the best way to enforce it is to have a single primitive in
rtlanal.c, with an optional filtering. Bernd's patch is a step in the right
direction, but doesn't enforce the single order. Maybe something based on a
macro calling duplicate_reg_note, but not clear whether it's really better.
--
Eric Botcazou