r295528 - [profiling] Tighten test cases which refer to "profn" vars. NFC.
Vedant Kumar via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 17 17:50:15 PST 2017
Author: vedantk
Date: Fri Feb 17 19:50:14 2017
New Revision: 295528
URL: http://llvm.org/viewvc/llvm-project?rev=295528&view=rev
Log:
[profiling] Tighten test cases which refer to "profn" vars. NFC.
The frontend can't see "__profn" profile name variables after IRGen
because llvm throws these away now. Tighten up some test cases which
checked for the non-existence of those variables.
Modified:
cfe/trunk/test/Profile/c-generate.c
cfe/trunk/test/Profile/cxx-structors.cpp
Modified: cfe/trunk/test/Profile/c-generate.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Profile/c-generate.c?rev=295528&r1=295527&r2=295528&view=diff
==============================================================================
--- cfe/trunk/test/Profile/c-generate.c (original)
+++ cfe/trunk/test/Profile/c-generate.c Fri Feb 17 19:50:14 2017
@@ -5,7 +5,8 @@
//
// PROF-INSTR-PATH: constant [24 x i8] c"c-generate-test.profraw\00"
//
-// PROF-INSTR-NONE-NOT: @__profn_main
+// PROF-INSTR-NONE-NOT: __llvm_prf
+//
// PROF-INSTR-GARBAGE: invalid PGO instrumentor in argument '-fprofile-instrument=garbage'
int main(void) {
Modified: cfe/trunk/test/Profile/cxx-structors.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Profile/cxx-structors.cpp?rev=295528&r1=295527&r2=295528&view=diff
==============================================================================
--- cfe/trunk/test/Profile/cxx-structors.cpp (original)
+++ cfe/trunk/test/Profile/cxx-structors.cpp Fri Feb 17 19:50:14 2017
@@ -20,13 +20,12 @@ Bar bar;
// Profile data for complete constructors and destructors must absent.
-// CHECK-NOT: @__profn__ZN3FooC1Ev
-// CHECK-NOT: @__profn__ZN3FooC1Ei
-// CHECK-NOT: @__profn__ZN3FooD1Ev
-// CHECK-NOT: @__profn__ZN3BarC1Ev
-// CHECK-NOT: @__profn__ZN3BarD1Ev
+// CHECK-NOT: @__profc__ZN3FooC1Ev
+// CHECK-NOT: @__profc__ZN3FooC1Ei
+// CHECK-NOT: @__profc__ZN3FooD1Ev
+// CHECK-NOT: @__profc__ZN3BarC1Ev
+// CHECK-NOT: @__profc__ZN3BarD1Ev
// CHECK-NOT: @__profc__ZN3FooD1Ev
-// CHECK-NOT: @__profd__ZN3FooD1Ev
int main() {
}
More information about the cfe-commits
mailing list