From abc5416be108920b4a49bb5680c243a5f441ab09 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Thu, 17 Aug 2017 20:09:02 +0000 Subject: [PATCH] [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. llvm-svn: 311118 --- polly/test/GPGPU/simple-managed-memory-rewrite.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polly/test/GPGPU/simple-managed-memory-rewrite.ll b/polly/test/GPGPU/simple-managed-memory-rewrite.ll index 55c62ad56ef0..5b28f59f9a20 100644 --- a/polly/test/GPGPU/simple-managed-memory-rewrite.ll +++ b/polly/test/GPGPU/simple-managed-memory-rewrite.ll @@ -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*