Commit Graph

8851 Commits

Author SHA1 Message Date
Chris Lattner
ac50030f86 Allow CallSites to be used as the key of a map
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9660 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-02 23:04:33 +00:00
Chris Lattner
15869aa2c7 All DSGraphs keep a reference to the targetdata they are created with. This is
used to eliminate the hard coded, hacked in, sparc specific, global TargetData.
Changing the TargetData used to actually match the code fixes problems, and
eliminates a crash.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9659 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-02 22:27:28 +00:00
Chris Lattner
dbfe36e51e Fix bug: test/Regression/Analysis/DSGraph/2003-11-02-NodeCollapsing.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9658 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-02 21:02:20 +00:00
Chris Lattner
dab02aeada New testcase for DSA which is improperly collapsed!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9657 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-02 20:43:10 +00:00
Chris Lattner
fc07a3473a Fix bug in previous checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9656 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-02 06:54:48 +00:00
Chris Lattner
766be1de9d The 'thefunc' function should not have weak linkage, it should have linkonce linkage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9655 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-02 06:30:39 +00:00
Chris Lattner
bc61e661bd Implement transmogriphication of allocation instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9654 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-02 05:57:39 +00:00
Chris Lattner
fc424c39de Add test for instcombine transmogrifying allocation instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9653 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-02 05:56:58 +00:00
Chris Lattner
f22d84389f Add note about profile.sh
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9652 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-02 05:20:44 +00:00
Chris Lattner
1ca922110d Add -help option
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9651 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-02 05:17:32 +00:00
Chris Lattner
8222eca269 Bugz fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9650 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-02 02:15:11 +00:00
Chris Lattner
e66e73aee5 Checkin an initial version of the llvm-prof documentation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9649 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-02 02:10:54 +00:00
Chris Lattner
d6d0d8c18d Fix PR78
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9648 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-02 02:06:27 +00:00
Chris Lattner
fa395ec036 The "correct" fix for CBackend/2003-10-23-UnusedType.ll is to not even try
to emit types which are not used.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9647 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-02 01:29:27 +00:00
Chris Lattner
ba12c23ca7 Including the symbol table in the FindUsedTypes analysis was the WRONG way
to fix test/Regression/CBackend/2003-10-23-UnusedType.ll.  This completely
neutered the deadtypeelim pass.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9646 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-02 01:28:41 +00:00
Chris Lattner
09dc5a6827 New testcase for PR79
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9645 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-02 00:57:56 +00:00
Chris Lattner
a1b82c3d3f new testcase, for PR 81
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9644 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-02 00:22:27 +00:00
Chris Lattner
e524589487 Regression test for PR 80
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9643 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-01 23:42:08 +00:00
Chris Lattner
1926f69c53 Escape "'s, which are frequent visitors to C++ types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9642 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-31 22:16:41 +00:00
Chris Lattner
bb9ae1512e Strip off CPR's manually, because if we don't, the inliner doesn't delete dead
functions.  GRR


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9641 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-31 21:05:58 +00:00
Chris Lattner
07a38e7b77 Make the call graph more precise despite the hated constantpointerrefs.
Do you detect the animosity I feel towards CPRs yet?


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9640 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-31 21:05:12 +00:00
Chris Lattner
bc539434c5 Did I mention that I _HATE_ CPRs?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9639 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-31 18:38:06 +00:00
Misha Brukman
94082397d2 Use stylesheets as much as we can. I admit, I still cannot make CSS do what I
can do with tables, which annoys me.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9638 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-31 18:37:20 +00:00
Chris Lattner
b816d4ac67 Obsolete file goes byebye
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9637 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-31 18:06:32 +00:00
Misha Brukman
c151132e27 Use some style(sheets).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9636 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-31 18:01:30 +00:00
Chris Lattner
b10bed8a63 Constant pointer refs are causing these to fail unnecessarily, which is causing
a lot of code to be pessimized.  I hate CPRs.  :(


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9635 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-31 17:51:16 +00:00
Brian Gaeke
3c3acaa957 Well, to be honest, -array-checks and -trace are gone, too. :-)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9631 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-31 05:12:04 +00:00
Alkis Evlogimenos
088eb45cf4 Use already existing classes for post order iterator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9629 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-31 03:02:34 +00:00
Misha Brukman
c6ad94c6a1 * Not much point to indent the whole file
* Let CVS keep track of our last-modified timestamp


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9628 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-31 00:39:28 +00:00
Misha Brukman
aaf1e4a262 The `-q' option has gone away.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9627 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-31 00:34:52 +00:00
Chris Lattner
9088de7357 never print zero executions blocks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9626 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-31 00:34:05 +00:00
Chris Lattner
3b7f41631d Simplify code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9625 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-31 00:20:09 +00:00
Chris Lattner
e1ccadf58c Add percentage info
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9624 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-31 00:13:26 +00:00
Chris Lattner
3baed41672 Hrm, some of my counters are wrapping around 32 bits
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9623 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-31 00:06:57 +00:00
Chris Lattner
367373053b If only have function profile, don't print out "not executed" for all of the blocks :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9622 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-30 23:44:28 +00:00
Chris Lattner
5e717646d7 Add the ability to print out llvm code when the -annotated-llvm option is given
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9621 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-30 23:42:09 +00:00
Chris Lattner
072ddb1dac Expose new print methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9620 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-30 23:41:19 +00:00
Chris Lattner
95e5a2cc3f Make use of the new AssemblyAnnotationWriter interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9619 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-30 23:41:03 +00:00
Chris Lattner
0836bf7bcf New interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9618 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-30 23:39:52 +00:00
Brian Gaeke
3ceac85296 Include llvm/CodeGen/MachineCodeForInstruction.h. Use it to start
implementing verifySavedState().

In saveState(), use the new AllocInfo::AllocStateTy enum, and increment
Insn each time through the loop.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9617 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-30 21:21:33 +00:00
Brian Gaeke
82c5eb7bc8 Make AllocState an enum.
Move the stringifying method for that enum into class AllocInfo.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9616 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-30 21:21:22 +00:00
Alkis Evlogimenos
74fa84fcef Output types in reverse postorder. This will allow the ByteCode/Reader
to create the minimum number of opaque types for each type with a
cycle in its type graph.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9615 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-30 21:04:44 +00:00
Alkis Evlogimenos
60048b8a66 Put DEBUG_OUTPUT at the top along with TRACE_LEVEL. Also fix the code
inside DEBUG_OUTPUT so that it compiles.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9614 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-30 18:33:58 +00:00
Chris Lattner
3dcc7b9335 Bugz fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9613 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-30 16:20:15 +00:00
Brian Gaeke
0b64ca3cbd Apparently my Mac OS X fixes were not entirely compatible with SPARC...hmm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9612 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-30 15:03:49 +00:00
Chris Lattner
14fffaf6c1 When someone includes CallGraph.h, make sure that they link in CallGraph.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9611 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-30 05:17:30 +00:00
Chris Lattner
c7f1cfb1fd Fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9610 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-30 04:35:26 +00:00
Chris Lattner
f9e8a0f03f New bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9609 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-30 01:43:33 +00:00
Chris Lattner
9f6a519027 Tighten up what we consider to be first class types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9608 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-30 01:38:41 +00:00
Chris Lattner
8ea8f36a7f Make sure that PHI node operands are first class types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9607 91177308-0d34-0410-b5e6-96231b3b80d8
2003-10-30 01:38:18 +00:00