Displaying 3 results from an estimated 3 matches for "myloop1".
2015 Jun 10
3
[LLVMdev] Question about NoWrap flag for SCEVAddRecExpr
I am testing vectorization on the following test case:
float x[1024], y[1024];
void myloop1() {
for (long int k = 0; k < 512; k++) {
x[2*k] = x[2*k]+y[k];
}
}
Vectorization failed due to "unsafe dependent memory operation". I traced
the LoopAccessAnalysis.cpp and found the reason is the NoWrapFlag for
SCEVAddRecExpr is not set and consequently th...
2015 Jun 11
4
[LLVMdev] Question about NoWrap flag for SCEVAddRecExpr
...f80:128-n8:16:32:64-S128"
> target triple = "x86_64-apple-macosx10.10.0"
>
> @x = common global [1024 x float] zeroinitializer, align 16
> @y = common global [1024 x float] zeroinitializer, align 16
>
> ; Function Attrs: nounwind ssp uwtable
> define void @myloop1() {
> bb:
> br label %bb2
>
> bb1: ; preds = %bb2
> ret void
>
> bb2: ; preds = %bb2, %bb
> %k.01 = phi i64 [ 0, %bb ], [ %tmp15, %bb2 ]
> %tmp = shl nsw i64 %k.01,...
2015 Jun 11
2
[LLVMdev] Question about NoWrap flag for SCEVAddRecExpr
...triple = "x86_64-apple-macosx10.10.0"
>>>
>>> @x = common global [1024 x float] zeroinitializer, align 16
>>> @y = common global [1024 x float] zeroinitializer, align 16
>>>
>>> ; Function Attrs: nounwind ssp uwtable
>>> define void @myloop1() {
>>> bb:
>>> br label %bb2
>>>
>>> bb1: ; preds = %bb2
>>> ret void
>>>
>>> bb2: ; preds = %bb2, %bb
>>> %k.01 = phi i64 [ 0,...