Re: [PATCH] Fix cselim ICE (PR tree-optimization/56635)

2013-03-18 Thread Richard Biener
On Mon, Mar 18, 2013 at 1:00 PM, Jakub Jelinek wrote: > Hi! > > On the attached testcase we ICE, because cselim uses >if (!is_gimple_reg_type (TREE_TYPE (lhs)) >|| !operand_equal_p (lhs, gimple_assign_lhs (else_assign), 0)) > to guard an optimization, and we have two MEM_REFs where ope

[PATCH] Fix cselim ICE (PR tree-optimization/56635)

2013-03-18 Thread Jakub Jelinek
Hi! On the attached testcase we ICE, because cselim uses if (!is_gimple_reg_type (TREE_TYPE (lhs)) || !operand_equal_p (lhs, gimple_assign_lhs (else_assign), 0)) to guard an optimization, and we have two MEM_REFs where operand_equal_p is true, but they don't have compatible types (the fi