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

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 28 00:37:07 PDT 2015


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
 




More information about the llvm-commits mailing list