Fold acc_on_device
Richard Biener
richard.guenther@gmail.com
Thu Oct 1 12:46:00 GMT 2015
On Thu, Oct 1, 2015 at 2:33 PM, Nathan Sidwell <nathan@acm.org> wrote:
> On 10/01/15 06:03, Richard Biener wrote:
>>
>> On Wed, Sep 30, 2015 at 9:22 PM, Jakub Jelinek <jakub@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
More information about the Gcc-patches
mailing list