Re: [GSoC][match-and-simplify] factor gimple expressions and builtin functions

2014-06-26 Thread Richard Biener
On Thu, Jun 26, 2014 at 11:43 AM, Richard Biener wrote: > On Thu, Jun 26, 2014 at 10:11 AM, Prathamesh Kulkarni > wrote: >> This patch factors expression checking for GIMPLE. >> >> Generates code as: >> if (TREE_CODE (opname) == SSA_NAME) >> { >> gimple def_stmt = SSA_NAME_DEF_STMT (opname); >>

Re: [GSoC][match-and-simplify] factor gimple expressions and builtin functions

2014-06-26 Thread Richard Biener
On Thu, Jun 26, 2014 at 10:11 AM, Prathamesh Kulkarni wrote: > This patch factors expression checking for GIMPLE. > > Generates code as: > if (TREE_CODE (opname) == SSA_NAME) > { > gimple def_stmt = SSA_NAME_DEF_STMT (opname); > if (is_gimple_assign (def_stmt)) > { > if (gimple_assign_rh

[GSoC][match-and-simplify] factor gimple expressions and builtin functions

2014-06-26 Thread Prathamesh Kulkarni
This patch factors expression checking for GIMPLE. Generates code as: if (TREE_CODE (opname) == SSA_NAME) { gimple def_stmt = SSA_NAME_DEF_STMT (opname); if (is_gimple_assign (def_stmt)) { if (gimple_assign_rhs_code (def_stmt) == ) { } if (gimple_assign_rhs_