[PATCH] ARM cost model: Add costs for vector selects

Arnold Schwaighofer aschwaighofer at apple.com
Wed Feb 6 16:41:19 PST 2013


Oh, yes.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ARM-cost-model-Add-costs-for-vector-selects.patch
Type: application/octet-stream
Size: 4228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130206/20f337ee/attachment.obj>
-------------- next part --------------


Thanks,
Arnold

On Feb 6, 2013, at 6:18 PM, Nadav Rotem <nrotem at apple.com> wrote:

> +  static const CostTblEntry<MVT> NEONSelectTbl[] = {
> +    { ISD::SELECT,   MVT::v8i8,   1},
> +    { ISD::SELECT,   MVT::v16i8,  1},
> +    { ISD::SELECT,   MVT::v4i16,  1},
> +    { ISD::SELECT,   MVT::v8i16,  1},
> +    { ISD::SELECT,   MVT::v2i32,  1},
> +    { ISD::SELECT,   MVT::v4i32,  1},
> +    { ISD::SELECT,   MVT::v2i64,  1},
> +    { ISD::SELECT,   MVT::v2f32,  1},
> +    { ISD::SELECT,   MVT::v4f32,  1},
> +    { ISD::SELECT,   MVT::v2f64,  1},
> +  };
> +
> 
> You don't need to use a table if you know that vector selects are free for all legal types. 
> 
> Thanks,
> Nadav


More information about the llvm-commits mailing list