This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC][PATCH LRA] WIP patch to fix one part of PR87507
- From: Peter Bergner <bergner at linux dot ibm dot com>
- To: Segher Boessenkool <segher at kernel dot crashing dot org>
- Cc: Jeff Law <law at redhat dot com>, Vladimir N Makarov <vmakarov at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 7 Nov 2018 10:29:29 -0600
- Subject: Re: [RFC][PATCH LRA] WIP patch to fix one part of PR87507
- References: <2c69adfc-b9db-687d-3a32-08f2efdde647@linux.ibm.com> <ca2d2a92-e8bc-4237-15cb-a3d06617b53b@linux.ibm.com> <5391dd89-e511-76e8-a22a-0d3692b44d19@redhat.com> <d944b375-bae4-819f-5043-54ad085bebb0@linux.ibm.com> <927deb43-5e00-5b9c-91f6-3bc17dd613ef@linux.ibm.com> <8e712264-7ffd-5715-9d4a-35be74344e5a@linux.ibm.com> <2c42a37e-3f96-02e4-1c72-4c3712872f1a@redhat.com> <20181107001402.GH5994@gate.crashing.org>
On 11/6/18 6:14 PM, Segher Boessenkool wrote:
> Or more general, that what is inside the subreg is a reg, because the
> code does rely on that.
I think you mean to beef up the following from:
+ if (HARD_REGISTER_P (nop_reg)
+ && REG_USERVAR_P (nop_reg)
+ && HARD_REGISTER_P (m_reg)
+ && REG_USERVAR_P (m_reg))
+ break;
to:
+ if (REG_P (nop_reg)
+ && HARD_REGISTER_P (nop_reg)
+ && REG_USERVAR_P (nop_reg)
+ && REG_P (m_reg)
+ && HARD_REGISTER_P (m_reg)
+ && REG_USERVAR_P (m_reg))
+ break;
...correct? I can add that. I don't think we need to modify
the other patch hunks, since we know operand_reg[x] is already
a reg.
Peter