This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Allow matching of side effects in operand_equal_p
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Richard Biener <rguenther at suse dot de>
- Cc: Jan Hubicka <hubicka at ucw dot cz>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 2 Nov 2015 18:40:12 +0100
- Subject: Re: Allow matching of side effects in operand_equal_p
- Authentication-results: sourceware.org; auth=none
- References: <20151102034853 dot GA91328 at kam dot mff dot cuni dot cz> <alpine dot LSU dot 2 dot 11 dot 1511021244400 dot 10078 at zhemvz dot fhfr dot qr>
>
> But you don't even need the call case for tailmerge or ICF as we don't
> have CALL_EXPRs in GIMPLE. No?
Sure, it will do the trick only if ?: generic folding is updated to pass OEP_MATCH_SIDE_EFFECTS
>
> And you mean the difference of OEP_CONSTANT_ADDRESS_OF to
> OEP_ADDRESS_OF | OEP_MATCH_SIDE_EFFECTS then, right?
>
> Ok if you go forward with that and do not change the CALL_EXPR case
> for now (you may add a FIXME comment).
OK.
Honza