r255326 - [PGO] Add a test case to cover version-3 format

Xinliang David Li via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 10 20:02:58 PST 2015


Author: davidxl
Date: Thu Dec 10 22:02:57 2015
New Revision: 255326

URL: http://llvm.org/viewvc/llvm-project?rev=255326&view=rev
Log:
[PGO] Add a test case to cover version-3 format

Added:
    cfe/trunk/test/Profile/Inputs/c-general.profdata.v3   (with props)
Modified:
    cfe/trunk/test/Profile/c-general.c

Added: cfe/trunk/test/Profile/Inputs/c-general.profdata.v3
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Profile/Inputs/c-general.profdata.v3?rev=255326&view=auto
==============================================================================
Binary file - no diff available.

Propchange: cfe/trunk/test/Profile/Inputs/c-general.profdata.v3
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: cfe/trunk/test/Profile/c-general.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Profile/c-general.c?rev=255326&r1=255325&r2=255326&view=diff
==============================================================================
--- cfe/trunk/test/Profile/c-general.c (original)
+++ cfe/trunk/test/Profile/c-general.c Thu Dec 10 22:02:57 2015
@@ -4,7 +4,7 @@
 
 // RUN: llvm-profdata merge %S/Inputs/c-general.proftext -o %t.profdata
 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name c-general.c %s -o - -emit-llvm -fprofile-instr-use=%t.profdata | FileCheck -check-prefix=PGOUSE %s
-
+// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name c-general.c %s -o - -emit-llvm -fprofile-instr-use=%S/Inputs/c-general.profdata.v3 | FileCheck -check-prefix=PGOUSE %s
 // Also check compatibility with older profiles.
 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name c-general.c %s -o - -emit-llvm -fprofile-instr-use=%S/Inputs/c-general.profdata.v1 | FileCheck -check-prefix=PGOUSE %s
 




More information about the cfe-commits mailing list