This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: web ICEs on subreg
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: Mike Stump <mikestump at comcast dot net>
- Cc: "gcc-patches at gcc dot gnu dot org List" <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 11 May 2013 00:10:03 +0200
- Subject: Re: web ICEs on subreg
- References: <D0C5078B-F760-49AF-83DA-26B8CC221A16 at comcast dot net>
On Fri, May 10, 2013 at 11:51 PM, Mike Stump wrote:
> - if (DF_REF_LOC (*ref) == recog_data.operand_loc[op])
> - break;
> + {
> + if (DF_REF_LOC (*ref) == recog_data.operand_loc[op])
> + break;
> + /* DF_REF_LOC can be (subreg:DI (reg:TI 5) 8) and
> + recog_data.operand_loc[op] can be (reg:TI 5), and the above
> + won't find it. */
> + if (GET_CODE (*DF_REF_LOC (*ref)) == SUBREG &&
> + &SUBREG_REG (*DF_REF_LOC (*ref)) == recog_data.operand_loc[op])
Congrats, you've re-invented DF_REF_REAL_LOC.
Ciao!
Steven