Re: question on find_if_case_2 in ifcvt.c

2011-09-09 Thread Jeff Law
On 09/08/2011 08:20 PM, Amker.Cheng wrote: Hi, In ifcvt.c's function find_if_case_2, it uses cheap_bb_rtx_cost_p to judge the conversion. Function cheap_bb_rtx_cost_p checks whether the total insn_rtx_cost on non-jump insns in basic block BB is less than MAX_COST. So the question is why uses ch

question on find_if_case_2 in ifcvt.c

2011-09-08 Thread Amker.Cheng
Hi, In ifcvt.c's function find_if_case_2, it uses cheap_bb_rtx_cost_p to judge the conversion. Function cheap_bb_rtx_cost_p checks whether the total insn_rtx_cost on non-jump insns in basic block BB is less than MAX_COST. So the question is why uses cheap_bb_rtx_cost_p, even when we know the ELSE