On 01/21/2015 01:30 PM, Jakub Jelinek wrote:
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
>
> 2015-01-21 Jakub Jelinek
>
> PR debug/64511
> * simplify-rtx.c (simplify_relational_operation_1): Don't try to
> optimize (eq/ne (and (side_effects) (const_
Hi!
This patch fixes endless recursion, when we have e.g.
(eq (and (mem (mem)) (const_int 0)) (const_int 0))
and one of the MEMs is volatile (side_effects_p is true for it).
Due to the side effects, (and ... (const_int 0)) is not folded into 0,
and these two hunks then attempt to "simplify" it as