Re: [PATCH][combine] Do not call rtx costs on potentially unrecognisable rtxes in combine

2015-04-21 Thread Kyrill Tkachov
On 21/04/15 15:06, Jeff Law wrote: On 04/21/2015 03:18 AM, Kyrill Tkachov wrote: Though I do wonder if, in practice, we can identify those cases that do simplify more directly apriori and just punt everything else rather than this rather convoluted approach. You mean like calling simplify_bin

Re: [PATCH][combine] Do not call rtx costs on potentially unrecognisable rtxes in combine

2015-04-21 Thread Jeff Law
On 04/21/2015 03:18 AM, Kyrill Tkachov wrote: Though I do wonder if, in practice, we can identify those cases that do simplify more directly apriori and just punt everything else rather than this rather convoluted approach. You mean like calling simplify_binary_operation that returns NULL if n

Re: [PATCH][combine] Do not call rtx costs on potentially unrecognisable rtxes in combine

2015-04-21 Thread Kyrill Tkachov
On 20/04/15 19:51, Jeff Law wrote: On 04/20/2015 08:04 AM, Kyrill Tkachov wrote: Hi all, I'm trying to reduce the cases where the midend calls the backend rtx costs on bogus rtl for which the backend doesn't have patterns or ways of handling. Having to handle these kinds of rtxes sanely bloats

Re: [PATCH][combine] Do not call rtx costs on potentially unrecognisable rtxes in combine

2015-04-20 Thread Jeff Law
On 04/20/2015 08:04 AM, Kyrill Tkachov wrote: Hi all, I'm trying to reduce the cases where the midend calls the backend rtx costs on bogus rtl for which the backend doesn't have patterns or ways of handling. Having to handle these kinds of rtxes sanely bloats those functions and makes them harde

[PATCH][combine] Do not call rtx costs on potentially unrecognisable rtxes in combine

2015-04-20 Thread Kyrill Tkachov
Hi all, I'm trying to reduce the cases where the midend calls the backend rtx costs on bogus rtl for which the backend doesn't have patterns or ways of handling. Having to handle these kinds of rtxes sanely bloats those functions and makes them harder to maintain. One of the cases where this o