[polly] r248697 - [tests] Add memory writes to make this scop not trivially empty

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 28 00:46:18 PDT 2015


Does that change anything? Was the test coupled with this benchmark
needed after all?

On 09/28, Tobias Grosser via llvm-commits wrote:
> Author: grosser
> Date: Mon Sep 28 02:37:06 2015
> New Revision: 248697
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=248697&view=rev
> Log:
> [tests] Add memory writes to make this scop not trivially empty
> 
> Modified:
>     polly/trunk/test/ScopDetect/indvars.ll
> 
> Modified: polly/trunk/test/ScopDetect/indvars.ll
> URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/ScopDetect/indvars.ll?rev=248697&r1=248696&r2=248697&view=diff
> ==============================================================================
> --- polly/trunk/test/ScopDetect/indvars.ll (original)
> +++ polly/trunk/test/ScopDetect/indvars.ll Mon Sep 28 02:37:06 2015
> @@ -2,7 +2,7 @@
>  ;
>  target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
>  
> -define void @main(i64* %A) nounwind {
> +define void @main(i64* %A, i64* %B) nounwind {
>  entry:
>    br label %for.i
>  
> @@ -19,6 +19,8 @@ for.j.preheader:
>  for.j:
>    %indvar.j = phi i64 [ %indvar.next.j, %for.j ], [ 0, %for.j.preheader ]
>    %indvar.next.j = add i64 %indvar.j, 1
> +  %scevgep2 = getelementptr i64, i64* %B, i64 %indvar.j
> +  store i64 %indvar.j, i64* %scevgep2, align 4
>    %exitcond.j = icmp eq i64 %indvar.next.j, 10
>    br i1 %exitcond.j, label %for.j2, label %for.j
>  
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits

-- 

Johannes Doerfert
Researcher / PhD Student

Compiler Design Lab (Prof. Hack)
Saarland University, Computer Science
Building E1.3, Room 4.31

Tel. +49 (0)681 302-57521 : doerfert at cs.uni-saarland.de
Fax. +49 (0)681 302-3065  : http://www.cdl.uni-saarland.de/people/doerfert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 213 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150928/fafad58f/attachment.sig>


More information about the llvm-commits mailing list