This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR middle-end/17055: Casting integer zero to a vector


Roger Sayle <roger@eyesopen.com> writes:
[...]

Without commenting on the patch overall, as I am unfamiliar with the
issues,

> +   elem = fold_convert_const (NOP_EXPR, TREE_TYPE (type), integer_zero_node);

I'd just like to point out that this is better written

    elem = build_int_cst (TREE_TYPE (type), 0);

these days.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]