Re: [PR64817-related 2/3] don't alloc rtl when failing to simplify XOR of AND

2015-02-04 Thread Jakub Jelinek
On Wed, Feb 04, 2015 at 04:11:03AM -0200, Alexandre Oliva wrote: > for gcc/ChangeLog > > PR debug/64817 > * simplify-rtx.c (simplify_binary_operation_1): Rewrite > simplification of XOR of AND to not allocate new rtx before > committing to a simplification. Ok, thanks.

[PR64817-related 2/3] don't alloc rtl when failing to simplify XOR of AND

2015-02-03 Thread Alexandre Oliva
We have a problem in simplify_binary_operation_1 that causes memory waste in general, and memory explosion in pathological testcases such as that of PR64817, with large exprs amounting to XOR of AND of XOR of AND of... I believe rtl simplifiers are not supposed to allocate rtl before committing to