[Patch] X86 horizontal vector reduction cost model

Yi Jiang yjiang at apple.com
Wed Sep 18 14:47:47 PDT 2013


Hi David, 

we will round (i, i+0.5] to i and (i+0.5, i+1) to i+1.  i+0.5 is really hard to tell so we just give it a slightly advantage to lower cost. 
On Sep 18, 2013, at 2:40 PM, David Majnemer <david.majnemer at gmail.com> wrote:

> 
> 
> 
> On Wed, Sep 18, 2013 at 2:23 PM, Yi Jiang <yjiang at apple.com> wrote:
> Hi Eric,
> 
> We use the Intel Architecture Code Analyzer to measure the throughput. Some operations does not occupy the port for the full cycle so there is something like 2.8. We just round it up and I will add comments to explain the background. Thank you for pointing it out. 
> 
> It seems like you round up 1.6 to 2 but you round 1.5 down to 1, is there a specific rationale?
> 
> -- 
> David Majnemer
>  
> 
> -Yi
> 
> On Sep 18, 2013, at 2:17 PM, Eric Christopher <echristo at gmail.com> wrote:
> 
>> +    { ISD::ADD,   MVT::v4i32,   3 },      // The raw data is 2.8,
>> +    { ISD::ADD,   MVT::v4i64,   3 },      // Use Data from avx
>> 
>> These comments seem next to useless? Not sure where you've grabbed the
>> data from or what raw data means.
>> 
>> Odd formatting nit:
>> 
>> +    { ISD::FADD,   MVT::v8f32,   4 },     // Use Data from avx
>> +    { ISD::ADD,   MVT::v2i64,   1 },      // The raw data is 1.5
>> 
>> If you're going to use multiple spaces after a , then why not line up
>> the columns? Otherwise you may as well make it a single space :)
>> 
>> -eric
>> 
>> 
>> On Wed, Sep 18, 2013 at 1:50 PM, yijiang <yjiang at apple.com> wrote:
>>> Hi Arnolds et al.
>>> 
>>> This patch is to polish horizontal vector reduction cost model for X86 target. Please help to review it. Thank you.
>>> 
>>> 
>>> 
>>> -Yi
>>> 
>>> _______________________________________________
>>> llvm-commits mailing list
>>> llvm-commits at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>>> 
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130918/2cc40d9c/attachment.html>


More information about the llvm-commits mailing list