Chris Lattner
750ba3d6eb
Add the ability to synthesize function counts from block count information
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9595 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 21:47:44 +00:00
Chris Lattner
18884a86ae
Print the top 20 most frequently executed blocks. Fix sort predicate problem
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9594 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 21:41:17 +00:00
Chris Lattner
942457564d
Refactor code, initial implementation of -insert-block-profiling pass
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9593 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 21:24:22 +00:00
Chris Lattner
05b958d363
More bugs fixed!
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9592 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 20:59:45 +00:00
Dinakar Dhurjati
79903c8115
Fixed LinkO, LinkP error in TOOLLINKOPTSB
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9591 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 20:34:13 +00:00
Brian Gaeke
bc839b5827
Explicitly cast type, so we aren't passing output_vbr a size_t.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9590 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 20:09:01 +00:00
Brian Gaeke
3386e45440
Tweak sed commands so that they filter out more # stuff and also
...
work on Mac OS X. Also turn ${...} into $(...); we do not speak BSD
Make.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9589 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 20:07:35 +00:00
Brian Gaeke
78e1dcc321
Add support for utostr(unsigned long)
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9588 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 20:06:19 +00:00
Chris Lattner
b5631bfa0c
New testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9587 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 19:18:48 +00:00
Chris Lattner
34790e558a
Add two new bugs
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9586 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 18:49:14 +00:00
Chris Lattner
546fc40d69
Fix PR66 & ScalarRepl/2003-10-29-ArrayProblem.ll
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9585 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 17:55:44 +00:00
Chris Lattner
06f6230121
New testcase distilled from:
...
UnitTests/2003-10-29-ScalarReplBug.c
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9584 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 16:24:10 +00:00
Dinakar Dhurjati
87ea8aa5e7
Added TOOLLINKOPTSB to pass options to the linker (e.g. adding search
...
path for external libraries).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9582 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 14:28:35 +00:00
Chris Lattner
32547fe715
New bug fixed
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9581 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 07:17:13 +00:00
Chris Lattner
399ed00319
Another bug fixed
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9580 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 06:05:55 +00:00
Chris Lattner
6ace4daa57
Fix bug: ConstantMerge/2003-10-28-MergeExternalConstants.ll & PR64
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9579 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 06:01:26 +00:00
Chris Lattner
851e07490c
New testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9578 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 05:51:03 +00:00
Brian Gaeke
681453dc77
Pull in stdint.h here, if we have it. Some systems keep
...
the INT*_MAX macros there.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9577 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 04:25:48 +00:00
Brian Gaeke
11911abf5c
In VM::create(), comment out almost the whole function if NO_JITS_ENABLED,
...
because the Arch variable will likely be undefined.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9576 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 04:24:09 +00:00
Alkis Evlogimenos
5d1bdcd6f6
Add more debugging info to help tracing the SlotCalculator.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9575 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 03:12:12 +00:00
Chris Lattner
287b62154e
Yet another bugfix for 1.1
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9574 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 01:26:07 +00:00
Chris Lattner
76429328b4
New testcase
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9573 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-29 01:23:01 +00:00
Chris Lattner
fe2143d87d
Check in statistifying patch for Bill
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9572 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 23:14:59 +00:00
Chris Lattner
2c17a89349
Add fixed PR
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9571 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 23:13:03 +00:00
Chris Lattner
a3a1c2de9d
Add new method
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9570 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 23:10:44 +00:00
Chris Lattner
c2bcde4da0
Fix PR62, and llvm/test/Regression/CBackend/2003-10-28-CastToPtrToStruct.ll
...
ConstantExpr's can use unrelated types, make sure to scan them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9569 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 23:09:45 +00:00
Brian Gaeke
dd73e9d0d5
New testcase, reduced from DOOM.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9568 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 22:54:56 +00:00
Chris Lattner
368820586b
Cleanup output a bit
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9567 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 22:53:49 +00:00
Chris Lattner
8a209dd030
Add option for block profiling, pass in the "correct" argv[0] to the program
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9566 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 22:52:05 +00:00
Chris Lattner
e69671d65b
Add the ability for users to specify a specific argv[0] to pass into the
...
program
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9565 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 22:51:44 +00:00
Chris Lattner
d09bef4d46
Actually save and pass in argument information
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9564 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 22:45:25 +00:00
Chris Lattner
c0204e0b73
Pass in argc & argv
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9563 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 22:42:24 +00:00
Chris Lattner
4963dcf584
Print out command lines used to run the programs
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9562 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 22:30:37 +00:00
Brian Gaeke
204089042b
Fix extract to use the right TargetData, like Bugpoint does.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9561 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 22:22:16 +00:00
Chris Lattner
ad910ebe70
Helper script for collecting profiling instrumentation. Simply run
...
$ profile.pl foo.bc <args>
... to instrument, run, then print a program profile!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9560 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 22:11:31 +00:00
Chris Lattner
33f1ca7d8a
Add support for reading block frequencies. Fix bug in attribution of counts
...
to functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9559 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 21:25:23 +00:00
Misha Brukman
b9e578934f
* Put LLVM in title of page so readers know which CFE we're talking about
...
* Use <ol> instead of <ul> if we're gonna number the list items
* Close <li> tags
* Stylize the document footer to be consistent
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9558 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 21:09:29 +00:00
Chris Lattner
7a78d819b7
Provide an accessor for getting function count information. Print a simple
...
report
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9557 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 21:08:18 +00:00
Chris Lattner
e436779c5a
Read in the bytecode and profile information, but don't do anything with
...
it yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9556 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 20:13:07 +00:00
Chris Lattner
98b1d8115e
We need to output the number of records we have, so we know how many to read in! Doh.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9555 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 19:35:56 +00:00
John Criswell
759c3ed4d6
Generated autoconf script for Chris.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9554 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 19:21:11 +00:00
Chris Lattner
644ccc1159
Add profiling runtime and llvm-prof tools. Would someone please regen the
...
configure script for me? :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9553 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 19:17:11 +00:00
Chris Lattner
67e7104db7
Build the llvm-prof directory
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9552 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 19:16:49 +00:00
Chris Lattner
6f82d07060
Initial checkin of llvmprof stub
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9551 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 19:16:35 +00:00
Brian Gaeke
8be7aa11c3
Remove __STDC_LIMIT_MACROS from here.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9550 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 19:11:29 +00:00
Brian Gaeke
90eca5505f
Add __STDC_LIMIT_MACROS here.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9549 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 19:09:28 +00:00
Chris Lattner
08020c13d0
Reorder #includes, drop unneeded one
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9548 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 19:08:15 +00:00
Chris Lattner
baa2007fae
Initial checkin of profiling instrumentation pass. So far, despite the
...
file name, we only support function profiling. This will be fixed in the
near future.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9547 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 18:59:04 +00:00
Chris Lattner
a9a3028935
Initial checkin of function and block profiling runtime library
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9546 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 18:56:51 +00:00
Misha Brukman
00ba55e593
Publications do not get distributed with docs/; hence, their stylesheet need not
...
be distributed either.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9545 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-28 18:55:27 +00:00