[polly] ffa39b4 - [Polly] Fix dumpfunction.ll test.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 28 20:44:40 PDT 2021


Author: Michael Kruse
Date: 2021-08-28T22:43:07-05:00
New Revision: ffa39b4582dfe7c306fbe1ac8652ef566f4ee2c7

URL: https://github.com/llvm/llvm-project/commit/ffa39b4582dfe7c306fbe1ac8652ef566f4ee2c7
DIFF: https://github.com/llvm/llvm-project/commit/ffa39b4582dfe7c306fbe1ac8652ef566f4ee2c7.diff

LOG: [Polly] Fix dumpfunction.ll test.

Added: 
    

Modified: 
    polly/test/Support/dumpfunction.ll

Removed: 
    


################################################################################
diff  --git a/polly/test/Support/dumpfunction.ll b/polly/test/Support/dumpfunction.ll
index 243322f99ecaa..3ddb0e2d94f09 100644
--- a/polly/test/Support/dumpfunction.ll
+++ b/polly/test/Support/dumpfunction.ll
@@ -1,11 +1,11 @@
 ; New pass manager
-; RUN: opt %loadPolly -enable-new-pm=1 -O3 -polly -polly-position=before-vectorizer -polly-dump-before --disable-output %s 
+; RUN: opt %loadPolly -enable-new-pm=1 -O3 -polly -polly-position=before-vectorizer -polly-dump-before --disable-output %s
 ; RUN: FileCheck --input-file=dumpfunction-callee-before.ll --check-prefix=CHECK --check-prefix=CALLEE %s
 ; RUN: FileCheck --input-file=dumpfunction-caller-before.ll --check-prefix=CHECK --check-prefix=CALLER %s
 ;
-; RUN: opt %loadPolly -enable-new-pm=1 -O3 -polly -polly-position=before-vectorizer -polly-dump-after  --disable-output %s
-; RUN: FileCheck --input-file=dumpfunction-callee-before.ll --check-prefix=CHECK --check-prefix=CALLEE %s
-; RUN: FileCheck --input-file=dumpfunction-caller-before.ll --check-prefix=CHECK --check-prefix=CALLER %s
+; RUN: opt %loadPolly -enable-new-pm=1 -O3 -polly -polly-position=before-vectorizer -polly-dump-after --disable-output %s
+; RUN: FileCheck --input-file=dumpfunction-callee-after.ll --check-prefix=CHECK --check-prefix=CALLEE %s
+; RUN: FileCheck --input-file=dumpfunction-caller-after.ll --check-prefix=CHECK --check-prefix=CALLER %s
 
 ; void callee(int n, double A[], int i) {
 ;   for (int j = 0; j < n; j += 1)
@@ -22,7 +22,7 @@
 
 @callee_alias = dso_local unnamed_addr alias void(i32, double*, i32), void(i32, double*, i32 )* @callee
 
-define internal void @callee(i32 %n, double* noalias nonnull %A, i32 %i) {
+define internal void @callee(i32 %n, double* noalias nonnull %A, i32 %i) #0 {
 entry:
   br label %for
 
@@ -49,7 +49,7 @@ return:
 }
 
 
-define internal void @caller(i32 %n, double* noalias nonnull %A) {
+define void @caller(i32 %n, double* noalias nonnull %A) #0 {
 entry:
   br label %for
 
@@ -59,7 +59,7 @@ for:
   br i1 %i.cmp, label %body, label %exit
 
     body:
-      call void @callee_alias(i32 %n, double* %A, i32 %i)
+      call void @callee(i32 %n, double* %A, i32 %i)
       br label %inc
 
 inc:
@@ -77,6 +77,8 @@ return:
 declare void @unrelated_decl()
 
 
+attributes #0 = { noinline }
+
 !llvm.ident = !{!8}
 !8 = !{!"xyxxy"}
 
@@ -87,7 +89,7 @@ declare void @unrelated_decl()
 ; CALLEE-NOT: @caller
 ; CALLEE-NOT: @unrelated_decl
 
-; CALLER-NOT: @callee(
+; CALLER-NOT: define {{.*}} @callee(
 ; CALLER-LABEL: @caller(
 
 ; CHECK-NOT: @unrelated_decl


        


More information about the llvm-commits mailing list