This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [gsoc 2014] moving fold-const patterns to gimple
- From: Prathamesh Kulkarni <bilbotheelffriend at gmail dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: gcc <gcc at gcc dot gnu dot org>
- Date: Tue, 18 Mar 2014 13:43:45 +0530
- Subject: Re: [gsoc 2014] moving fold-const patterns to gimple
- Authentication-results: sourceware.org; auth=none
- References: <CAJXstsDSbO7QTSkJ-y4ftO4SshGkwYuow+U0nb4FdHSjHtfB=A at mail dot gmail dot com> <CAFiYyc0UqPLoV76gUWiUXzCa3SxumXrmq7vsFtJ4GtnNjVrf3A at mail dot gmail dot com> <CAJXstsAAA0=2ELCaai8SdM3e3S1S2hcigUF2A=s0jS-ytwCXdA at mail dot gmail dot com> <CAFiYyc09sUOGGaPzRge6ysr1TzucGCMufFSQbTy5GADXWh5rTg at mail dot gmail dot com> <CAJXstsAuf8PSvbFMudDV43xdJTQ5wxYoiRGO5MJ-u0QCZYVunw at mail dot gmail dot com> <CAFiYyc0k=onaLtokpzsbbHDQ7SvotYdpkuF5z+UyVwC2JhkFnA at mail dot gmail dot com> <CAJXstsCD1EEMKqB19-=7SOrsmQgNFn23+mUe0+S-bPULHLgbXg at mail dot gmail dot com> <CAFiYyc2W7nmYnpBFF-xhO3G4rGzVLXvZoCaRV6UTo_2aZNxuxA at mail dot gmail dot com> <CAFiYyc2WRuH7Am42zBQd2-h6tatsgX8Wn9ECb_b_QNq0FYTA1g at mail dot gmail dot com> <CAJXstsC86wTB6oWdaCqtcR6vP4k4OJu0eAsoTLxsp_iXz48hvg at mail dot gmail dot com> <CAFiYyc0xD8X9bwrg1iAziqZO-BOZ1vYkW+fm+8i75eUp_-pCyQ at mail dot gmail dot com> <CAJXstsDnSn54JNVaN3ZY8b4LnfjgYJ=0p_+M+_GnYVTF3-NMrA at mail dot gmail dot com> <CAFiYyc2dwsfrS=69bNw0JGBeJY4krM--Q0FUMmkup2pVvJ2YMA at mail dot gmail dot com>
On Mon, Mar 17, 2014 at 2:22 PM, Richard Biener
<richard.guenther@gmail.com> wrote:
> On Sun, Mar 16, 2014 at 1:21 PM, Prathamesh Kulkarni
> <bilbotheelffriend@gmail.com> wrote:
>> In c_expr::c_expr, shouldn't OP_C_EXPR be passed to operand
>> constructor instead of OP_EXPR ?
>
> Indeed - I have committed the fix.
>
My earlier mail got rejected (maybe because I attached pdf ?),
by mailer daemon, sorry for the double post.
I have uploaded the proposal here:
https://drive.google.com/file/d/0B7zFk-y3DFiHa1Nkdzh6TFZpVFE/edit?usp=sharing
I would be grateful to receive your feedback.
Thanks and Regards,
Prathamesh
> Thanks,
> Richard.
>
>> This caused segfault for patterns when "simplification" operand was
>> only c_expr (patch attached).
>>
>> * genmatch.c (c_expr::c_expr): use OP_C_EXPR instead of OP_EXPR in
>> call to operand constructor.