On Thu, Oct 1, 2015 at 2:33 PM, Nathan Sidwell <nat...@acm.org> wrote: > On 10/01/15 06:03, Richard Biener wrote: >> >> On Wed, Sep 30, 2015 at 9:22 PM, Jakub Jelinek <ja...@redhat.com> wrote: > > >>> Wouldn't it be better to just emit GIMPLE here instead? >>> So >>> tree res = make_ssa_name (boolean_type_node); >>> gimple g = gimple_build_assign (res, EQ_EXPR, arg0, >>> build_int_cst (integer_type_node, >>> val_host)); >>> gsi_insert_before (gsi, g); >>> ... > > > Like this?
+ gimple *host_ass = gimple_build_assign + (host_eq, EQ_EXPR, arg0, build_int_cst (integer_type_node, val_host)); use TREE_TYPE (arg0) for the integer cst. Otherwise looks good to me. Thanks, Richard. > nathan