Displaying 3 results from an estimated 3 matches for "74d2c0f9".
2013 Aug 22
2
[LLVMdev] scev questions
...p count. Did you mean INT_MAX-1, INT_MAX-2 etc? In this case,
I believe, the behavior is undefined, because adds are marked with "nsw".
Eugene
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130822/74d2c0f9/attachment.html>
2013 Aug 22
0
[LLVMdev] scev questions
On 22 August 2013 13:24, Redmond, Paul <paul.redmond at intel.com> wrote:
> Hi,
>
> I'm trying to get the following loop to vectorize (simple reduction):
>
> unsigned int sum2(unsigned int *a, int len){
> unsigned int s = 0;
> for (int i = 0; i < len; i += 4)
> s += *a++;
> return s;
> }
>
>
> The loop fails to vectorize because SCEV
2013 Aug 22
2
[LLVMdev] scev questions
Hi,
I'm trying to get the following loop to vectorize (simple reduction):
unsigned int sum2(unsigned int *a, int len){
unsigned int s = 0;
for (int i = 0; i < len; i += 4)
s += *a++;
return s;
}
The loop fails to vectorize because SCEV could not compute the loop exit
count. It appears SCEV cannot handle the non-unit increment of the loop
counter. Is this a known limitation of