Xinliang David Li
f418bb8023
[Profile] Add a new test case
...
The end-end test checks that cs-profile counter update
is obtained as expected.
llvm-svn: 277276
2016-07-30 20:12:00 +00:00
Xinliang David Li
6f6825fe13
Fix buildbot failure
...
llvm-svn: 276512
2016-07-23 03:34:30 +00:00
Xinliang David Li
54bb751a87
[Profile] Tighten test with expected profile count
...
llvm-svn: 276500
2016-07-22 23:53:00 +00:00
Xinliang David Li
544ae6c4f3
[Profile] Fix a fixme in the test
...
llvm-svn: 276494
2016-07-22 23:44:06 +00:00
Xinliang David Li
5a6dc4c9b8
[Profile] Add new test
...
To test that online merging is enabled by default.
llvm-svn: 276493
2016-07-22 23:38:58 +00:00
Xinliang David Li
e953933a9f
[Profile] deprecate __llvm_profile_override_default_filename (part2)
...
This eliminates unncessary calls and init functions.
Differential Revision: http://reviews.llvm.org/D22614
llvm-svn: 276355
2016-07-21 23:19:18 +00:00
Xinliang David Li
fa7c6f0d84
[Profile] Add new test to cover %m specifier with shared library (instrumented)
...
llvm-svn: 276229
2016-07-21 02:58:28 +00:00
Xinliang David Li
ab8d32d53a
[Profile] More test clean up to read profile from directory specified by -fprofile-generate=
...
llvm-svn: 276226
2016-07-21 02:14:55 +00:00
Xinliang David Li
f6b2ba687b
[Profile] Cleanup test to use new dir input feature
...
llvm-svn: 276225
2016-07-21 01:53:41 +00:00
Xinliang David Li
eaf238d494
[Profile] implement interface to get profile path prefix
...
Differential Revision: http://reviews.llvm.org/D22546
llvm-svn: 276083
2016-07-20 04:26:09 +00:00
Xinliang David Li
5d2ea9dcf8
[Profile] Test cleanup -- use new lit var for IR PGO tests /NFC
...
llvm-svn: 276036
2016-07-19 22:12:00 +00:00
Xinliang David Li
f26e1d9fb5
[Profile] Introduce lit test vars for IR based instrumentation
...
llvm-svn: 276034
2016-07-19 21:55:55 +00:00
Etienne Bergeron
ab42f4ddba
[compiler-rt] Fix VisualStudio virtual folders layout
...
Summary:
This patch is a refactoring of the way cmake 'targets' are grouped.
It won't affect non-UI cmake-generators.
Clang/LLVM are using a structured way to group targets which ease
navigation through Visual Studio UI. The Compiler-RT projects
differ from the way Clang/LLVM are grouping targets.
This patch doesn't contain behavior changes.
Reviewers: kubabrecka, rnk
Subscribers: wang0109, llvm-commits, kubabrecka, chrisha
Differential Revision: http://reviews.llvm.org/D21952
llvm-svn: 275111
2016-07-11 21:51:56 +00:00
Xinliang David Li
3e9bbddcbb
fix a test bug when executed remotedly
...
llvm-svn: 273693
2016-06-24 17:42:51 +00:00
Sean Silva
537b146798
[libprofile] Define an expansion `%clang_profgen=`
...
llvm-svn: 272498
2016-06-12 04:17:57 +00:00
Xinliang David Li
df5843a532
[profile] fix bot failure on darwin
...
Profile setting accross shared lib is broken on darwin (to be investigated).
Move the test to Linux only for now
llvm-svn: 272404
2016-06-10 16:23:32 +00:00
Xinliang David Li
1d58b8d95e
[profile] add profile path tests for shared lib
...
Test that __llvm_profile_set_filename invoked in
main program is 'visible' to shared lib (overriding
shared libary's profile path set on command line)
llvm-svn: 272375
2016-06-10 06:14:17 +00:00
Xinliang David Li
af053d8b97
[profile] add profile path tests
...
Testing profile path setter predendence.
llvm-svn: 272372
2016-06-10 05:19:38 +00:00
Xinliang David Li
5846d08a2c
Fix win bot failure
...
llvm-svn: 272316
2016-06-09 21:52:24 +00:00
Vedant Kumar
2494d18f84
[profile] Fix test to bail on failed waitpid in instrprof-file_ex.c
...
This resolves PR28066.
Patch by David Binderman!
llvm-svn: 272268
2016-06-09 15:29:59 +00:00
Xinliang David Li
e2ce2e0020
[profile] in-process merging support part-3
...
Differential Revision: http://reviews.llvm.org/D21056
llvm-svn: 272227
2016-06-08 23:43:56 +00:00
David Blaikie
7d492c4ff8
add -f to rm so the test passes the first time it's run the file file is not present
...
(otherwise it just keeps failing at the rm step and never passes... )
llvm-svn: 271959
2016-06-06 23:31:58 +00:00
Sean Silva
7e4e69abe2
[libprofile] Also use `env` for this test.
...
(necessary on Windows)
llvm-svn: 271955
2016-06-06 23:19:23 +00:00
Sean Silva
d7caf5889b
[libprofile] Add %run to a couple tests.
...
llvm-svn: 271947
2016-06-06 22:19:49 +00:00
Xinliang David Li
0891b6d59b
[profile] code cleanup /NFC
...
Address review feedback for better
readability.
llvm-svn: 271922
2016-06-06 18:31:29 +00:00
Xinliang David Li
5cd1f94d4f
[profile] in-process mergeing support (part-2)
...
(Part-1 merging API is in profile runtime)
This patch implements a portable file opening API
with exclusive access for the process. In-process
profile merge requires profile file update to be
atomic/fully sychronized.
llvm-svn: 271864
2016-06-06 03:17:58 +00:00
Xinliang David Li
c012d086fa
reapply r271577 after OSX bug is fixed (hopefully)
...
llvm-svn: 271759
2016-06-04 01:51:25 +00:00
Mehdi Amini
e1db5a0400
Revert "[profile] enable a subtest for vcall inline virtual func"
...
This reverts commit r271577.
The test does not pass on OSX.
llvm-svn: 271617
2016-06-03 00:45:26 +00:00
Xinliang David Li
d4c23fc76f
[profile] enable a subtest for vcall inline virtual func
...
llvm-svn: 271577
2016-06-02 20:12:06 +00:00
Xinliang David Li
66703ebfe5
[profile] Add end-end test of vp for inline virtual functions
...
Make sure inline virtual function's address is properly recorded and
dumped in raw profile so that value profiling does not loss tracking.
(Second part of the test will be enabled after the lowering bug is fixed
in LLVM)
llvm-svn: 271528
2016-06-02 16:24:21 +00:00
Xinliang David Li
9ab45cf1eb
Move test only for the relevant platform
...
llvm-svn: 271098
2016-05-28 04:26:06 +00:00
Xinliang David Li
c3fdce3f1d
[profile] Add a test to ensure runtime allocator is not invoked
...
llvm-svn: 271017
2016-05-27 16:49:29 +00:00
Xinliang David Li
753279e054
Add missing test case changes
...
llvm-svn: 270930
2016-05-26 22:20:39 +00:00
Xinliang David Li
65971297a0
[profile] Add early checking to bypass node pointer update
...
llvm-svn: 270766
2016-05-25 21:27:02 +00:00
Xinliang David Li
7b41393497
[profile] initialize static pool properly
...
Remove dependency on runtime initializer to avoid
issues related to initialization order.
llvm-svn: 270371
2016-05-22 16:36:03 +00:00
Xinliang David Li
4e8754d2cb
[profile] Static counter allocation for value profiling (part-2)
...
Differential Revision: http://reviews.llvm.org/D20460
llvm-svn: 270337
2016-05-21 22:55:45 +00:00
Xinliang David Li
690c31f104
[profile] PROF_ERR, PROF_WARN
...
1) Move common prefix to the macro def
2) Introduced PROF_WARN
3) Make error message unconditionally printed out.
llvm-svn: 270185
2016-05-20 05:15:42 +00:00
Xinliang David Li
5f153e686e
[profile] entry eviction support in value profiler
...
Differential revision: http://reviews.llvm.org/D20408
llvm-svn: 270141
2016-05-19 21:35:34 +00:00
Xinliang David Li
609fae3893
[profile] Eliminate dynamic memory allocation for buffered writer
...
With this change, dynamic memory allocation is only used
for testing purpose. This change is one of the many steps to
make instrument profiler dynamic allocation free.
llvm-svn: 269453
2016-05-13 18:26:26 +00:00
Rong Xu
5da4dab0fc
Reapply r268608
...
Re-enable the tests after IR instrumentation fix (r269146).
Check-in on behalf of davidxl.
llvm-svn: 269219
2016-05-11 18:37:08 +00:00
Xinliang David Li
32d8dc8261
Revert r268130 -- more bot failure
...
llvm-svn: 269142
2016-05-10 23:52:02 +00:00
Xinliang David Li
b788391260
Reapply r268608 after IR instr bug fix
...
llvm-svn: 269130
2016-05-10 22:01:20 +00:00
Xinliang David Li
bde99c3b0f
Remove XFAIL
...
llvm-svn: 268978
2016-05-09 21:47:29 +00:00
Xinliang David Li
e5e4713a56
Re install test reverted by r268866
...
llvm-svn: 268964
2016-05-09 19:51:50 +00:00
Renato Golin
553429898e
[InstrProf] Delete unstable test on ARM. See PR27667
...
llvm-svn: 268866
2016-05-07 20:17:33 +00:00
Xinliang David Li
bedb81e09f
Revert r268608 -- unexplained darwin bot failure
...
llvm-svn: 268779
2016-05-06 19:26:56 +00:00
Renato Golin
039f2ac354
[InstProf] Temporarily removing a test that fails/passes on different configurations (PR27667)
...
llvm-svn: 268748
2016-05-06 16:44:56 +00:00
Renato Golin
00966ed8b9
XFAILing a test on ARM. See PR27667
...
llvm-svn: 268745
2016-05-06 15:34:54 +00:00
Xinliang David Li
2516bcd01c
Add a test of VP with shared lib
...
llvm-svn: 268612
2016-05-05 06:28:12 +00:00
Xinliang David Li
0c09036232
IR value profile testing cleanup
...
llvm-svn: 268608
2016-05-05 05:41:02 +00:00