[polly] r311118 - [GPGPU] Make test case independent of LLVM names

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 17 13:09:02 PDT 2017


Author: grosser
Date: Thu Aug 17 13:09:02 2017
New Revision: 311118

URL: http://llvm.org/viewvc/llvm-project?rev=311118&view=rev
Log:
[GPGPU] Make test case independent of LLVM names

In release builds LLVM may not pass along LLVM names consistently. We make the
test cases independent of the LLVM-IR names to avoid spurious test case
failures.

Modified:
    polly/trunk/test/GPGPU/simple-managed-memory-rewrite.ll

Modified: polly/trunk/test/GPGPU/simple-managed-memory-rewrite.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/GPGPU/simple-managed-memory-rewrite.ll?rev=311118&r1=311117&r2=311118&view=diff
==============================================================================
--- polly/trunk/test/GPGPU/simple-managed-memory-rewrite.ll (original)
+++ polly/trunk/test/GPGPU/simple-managed-memory-rewrite.ll Thu Aug 17 13:09:02 2017
@@ -13,11 +13,11 @@
 ; SCOP: i32 MemRef_A[*];
 
 ; Check that we generate a constructor call for @A.toptr
-; HOST-IR: @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @.constructor, i8* bitcast (i32** @A.toptr to i8*) }]
+; HOST-IR: @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* {{.*}}, i8* bitcast (i32** @A.toptr to i8*) }]
 
 ; Check that we generate a constructor
 ; 4 bytes * 100 = 400
-; HOST-IR: define void @.constructor() {
+; HOST-IR: define void {{.*}}constructor() {
 ; HOST-IR-NEXT: entry:
 ; HOST-IR-NEXT:   %mem.raw = call i8* @polly_mallocManaged(i64 400)
 ; HOST-IR-NEXT:   %mem.typed = bitcast i8* %mem.raw to i32*




More information about the llvm-commits mailing list