oota-llvm.git
20 years agoMore testcases
Chris Lattner [Mon, 3 Nov 2003 05:42:50 +0000 (05:42 +0000)]
More testcases

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9675 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMove a test from cast-set to a new bit-tracking.ll file. Update file comments
Chris Lattner [Mon, 3 Nov 2003 05:30:34 +0000 (05:30 +0000)]
Move a test from cast-set to a new bit-tracking.ll file.  Update file comments

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9674 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoImplement InstCombine/cast-set.ll:test6[a]. This improves code generated for
Chris Lattner [Mon, 3 Nov 2003 05:17:03 +0000 (05:17 +0000)]
Implement InstCombine/cast-set.ll:test6[a].  This improves code generated for
a hot function in em3d

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9673 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd another case, which an implementation of test6 must be sure to handle
Chris Lattner [Mon, 3 Nov 2003 05:08:53 +0000 (05:08 +0000)]
Add another case, which an implementation of test6 must be sure to handle
correctly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9672 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoThis simplifies the CWriter code, makes the generated code easier to read,
Chris Lattner [Mon, 3 Nov 2003 04:31:54 +0000 (04:31 +0000)]
This simplifies the CWriter code, makes the generated code easier to read,
and makes the output work with the intel compiler.  Overall, a win.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9671 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoImplement InstCombine/cast-set.ll: test1, test2, test7
Chris Lattner [Mon, 3 Nov 2003 04:25:02 +0000 (04:25 +0000)]
Implement InstCombine/cast-set.ll: test1, test2, test7

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9670 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd the testcase from PR8
Chris Lattner [Mon, 3 Nov 2003 03:52:34 +0000 (03:52 +0000)]
Add the testcase from PR8

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9669 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd another case, which occurs in em3d
Chris Lattner [Mon, 3 Nov 2003 03:51:26 +0000 (03:51 +0000)]
Add another case, which occurs in em3d

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9668 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix bug with zero sized casts
Chris Lattner [Mon, 3 Nov 2003 01:29:41 +0000 (01:29 +0000)]
Fix bug with zero sized casts

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9667 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoEliminate the silly namedContext member of printType
Chris Lattner [Mon, 3 Nov 2003 01:01:59 +0000 (01:01 +0000)]
Eliminate the silly namedContext member of printType

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9666 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAllow CallSites to be used as the key of a map
Chris Lattner [Sun, 2 Nov 2003 23:04:33 +0000 (23:04 +0000)]
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

20 years agoAll DSGraphs keep a reference to the targetdata they are created with. This is
Chris Lattner [Sun, 2 Nov 2003 22:27:28 +0000 (22:27 +0000)]
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

20 years agoFix bug: test/Regression/Analysis/DSGraph/2003-11-02-NodeCollapsing.ll
Chris Lattner [Sun, 2 Nov 2003 21:02:20 +0000 (21:02 +0000)]
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

20 years agoNew testcase for DSA which is improperly collapsed!
Chris Lattner [Sun, 2 Nov 2003 20:43:10 +0000 (20:43 +0000)]
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

20 years agoFix bug in previous checkin
Chris Lattner [Sun, 2 Nov 2003 06:54:48 +0000 (06:54 +0000)]
Fix bug in previous checkin

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9656 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoThe 'thefunc' function should not have weak linkage, it should have linkonce linkage.
Chris Lattner [Sun, 2 Nov 2003 06:30:39 +0000 (06:30 +0000)]
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

20 years agoImplement transmogriphication of allocation instructions
Chris Lattner [Sun, 2 Nov 2003 05:57:39 +0000 (05:57 +0000)]
Implement transmogriphication of allocation instructions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9654 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd test for instcombine transmogrifying allocation instructions
Chris Lattner [Sun, 2 Nov 2003 05:56:58 +0000 (05:56 +0000)]
Add test for instcombine transmogrifying allocation instructions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9653 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd note about profile.sh
Chris Lattner [Sun, 2 Nov 2003 05:20:44 +0000 (05:20 +0000)]
Add note about profile.sh

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9652 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd -help option
Chris Lattner [Sun, 2 Nov 2003 05:17:32 +0000 (05:17 +0000)]
Add -help option

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9651 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoBugz fixed
Chris Lattner [Sun, 2 Nov 2003 02:15:11 +0000 (02:15 +0000)]
Bugz fixed

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9650 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoCheckin an initial version of the llvm-prof documentation
Chris Lattner [Sun, 2 Nov 2003 02:10:54 +0000 (02:10 +0000)]
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

20 years agoFix PR78
Chris Lattner [Sun, 2 Nov 2003 02:06:27 +0000 (02:06 +0000)]
Fix PR78

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9648 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoThe "correct" fix for CBackend/2003-10-23-UnusedType.ll is to not even try
Chris Lattner [Sun, 2 Nov 2003 01:29:27 +0000 (01:29 +0000)]
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

20 years agoIncluding the symbol table in the FindUsedTypes analysis was the WRONG way
Chris Lattner [Sun, 2 Nov 2003 01:28:41 +0000 (01:28 +0000)]
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

20 years agoNew testcase for PR79
Chris Lattner [Sun, 2 Nov 2003 00:57:56 +0000 (00:57 +0000)]
New testcase for PR79

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9645 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agonew testcase, for PR 81
Chris Lattner [Sun, 2 Nov 2003 00:22:27 +0000 (00:22 +0000)]
new testcase, for PR 81

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9644 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRegression test for PR 80
Chris Lattner [Sat, 1 Nov 2003 23:42:08 +0000 (23:42 +0000)]
Regression test for PR 80

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9643 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoEscape "'s, which are frequent visitors to C++ types
Chris Lattner [Fri, 31 Oct 2003 22:16:41 +0000 (22:16 +0000)]
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

20 years agoStrip off CPR's manually, because if we don't, the inliner doesn't delete dead
Chris Lattner [Fri, 31 Oct 2003 21:05:58 +0000 (21:05 +0000)]
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

20 years agoMake the call graph more precise despite the hated constantpointerrefs.
Chris Lattner [Fri, 31 Oct 2003 21:05:12 +0000 (21:05 +0000)]
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

20 years agoDid I mention that I _HATE_ CPRs?
Chris Lattner [Fri, 31 Oct 2003 18:38:06 +0000 (18:38 +0000)]
Did I mention that I _HATE_ CPRs?

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9639 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUse stylesheets as much as we can. I admit, I still cannot make CSS do what I
Misha Brukman [Fri, 31 Oct 2003 18:37:20 +0000 (18:37 +0000)]
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

20 years agoObsolete file goes byebye
Chris Lattner [Fri, 31 Oct 2003 18:06:32 +0000 (18:06 +0000)]
Obsolete file goes byebye

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9637 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUse some style(sheets).
Misha Brukman [Fri, 31 Oct 2003 18:01:30 +0000 (18:01 +0000)]
Use some style(sheets).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9636 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoConstant pointer refs are causing these to fail unnecessarily, which is causing
Chris Lattner [Fri, 31 Oct 2003 17:51:16 +0000 (17:51 +0000)]
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

20 years agoWell, to be honest, -array-checks and -trace are gone, too. :-)
Brian Gaeke [Fri, 31 Oct 2003 05:12:04 +0000 (05:12 +0000)]
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

20 years agoUse already existing classes for post order iterator.
Alkis Evlogimenos [Fri, 31 Oct 2003 03:02:34 +0000 (03:02 +0000)]
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

20 years ago* Not much point to indent the whole file
Misha Brukman [Fri, 31 Oct 2003 00:39:28 +0000 (00:39 +0000)]
* 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

20 years agoThe `-q' option has gone away.
Misha Brukman [Fri, 31 Oct 2003 00:34:52 +0000 (00:34 +0000)]
The `-q' option has gone away.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9627 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agonever print zero executions blocks
Chris Lattner [Fri, 31 Oct 2003 00:34:05 +0000 (00:34 +0000)]
never print zero executions blocks

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9626 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoSimplify code
Chris Lattner [Fri, 31 Oct 2003 00:20:09 +0000 (00:20 +0000)]
Simplify code

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9625 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd percentage info
Chris Lattner [Fri, 31 Oct 2003 00:13:26 +0000 (00:13 +0000)]
Add percentage info

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9624 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoHrm, some of my counters are wrapping around 32 bits
Chris Lattner [Fri, 31 Oct 2003 00:06:57 +0000 (00:06 +0000)]
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

20 years agoIf only have function profile, don't print out "not executed" for all of the blocks :)
Chris Lattner [Thu, 30 Oct 2003 23:44:28 +0000 (23:44 +0000)]
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

20 years agoAdd the ability to print out llvm code when the -annotated-llvm option is given
Chris Lattner [Thu, 30 Oct 2003 23:42:09 +0000 (23:42 +0000)]
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

20 years agoExpose new print methods
Chris Lattner [Thu, 30 Oct 2003 23:41:19 +0000 (23:41 +0000)]
Expose new print methods

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9620 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMake use of the new AssemblyAnnotationWriter interface
Chris Lattner [Thu, 30 Oct 2003 23:41:03 +0000 (23:41 +0000)]
Make use of the new AssemblyAnnotationWriter interface

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9619 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoNew interface
Chris Lattner [Thu, 30 Oct 2003 23:39:52 +0000 (23:39 +0000)]
New interface

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9618 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoInclude llvm/CodeGen/MachineCodeForInstruction.h. Use it to start
Brian Gaeke [Thu, 30 Oct 2003 21:21:33 +0000 (21:21 +0000)]
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

20 years agoMake AllocState an enum.
Brian Gaeke [Thu, 30 Oct 2003 21:21:22 +0000 (21:21 +0000)]
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

20 years agoOutput types in reverse postorder. This will allow the ByteCode/Reader
Alkis Evlogimenos [Thu, 30 Oct 2003 21:04:44 +0000 (21:04 +0000)]
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

20 years agoPut DEBUG_OUTPUT at the top along with TRACE_LEVEL. Also fix the code
Alkis Evlogimenos [Thu, 30 Oct 2003 18:33:58 +0000 (18:33 +0000)]
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

20 years agoBugz fixed
Chris Lattner [Thu, 30 Oct 2003 16:20:15 +0000 (16:20 +0000)]
Bugz fixed

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9613 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoApparently my Mac OS X fixes were not entirely compatible with SPARC...hmm.
Brian Gaeke [Thu, 30 Oct 2003 15:03:49 +0000 (15:03 +0000)]
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

20 years agoWhen someone includes CallGraph.h, make sure that they link in CallGraph.cpp
Chris Lattner [Thu, 30 Oct 2003 05:17:30 +0000 (05:17 +0000)]
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

20 years agoFix typo
Chris Lattner [Thu, 30 Oct 2003 04:35:26 +0000 (04:35 +0000)]
Fix typo

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9610 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoNew bug
Chris Lattner [Thu, 30 Oct 2003 01:43:33 +0000 (01:43 +0000)]
New bug

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9609 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoTighten up what we consider to be first class types.
Chris Lattner [Thu, 30 Oct 2003 01:38:41 +0000 (01:38 +0000)]
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

20 years agoMake sure that PHI node operands are first class types
Chris Lattner [Thu, 30 Oct 2003 01:38:18 +0000 (01:38 +0000)]
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

20 years agoClarify that all manipulatable values must be of first class type, and specifically
Chris Lattner [Thu, 30 Oct 2003 01:31:37 +0000 (01:31 +0000)]
Clarify that all manipulatable values must be of first class type, and specifically
update the PHI node entry to mention this as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9606 91177308-0d34-0410-b5e6-96231b3b80d8

20 years ago* Send people to the LLVMdev archive/subscription page rather than just state
Misha Brukman [Thu, 30 Oct 2003 01:23:40 +0000 (01:23 +0000)]
* Send people to the LLVMdev archive/subscription page rather than just state
  the address
* Somewhat standardize the footer of the page

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9605 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAnother day, another bug
Chris Lattner [Thu, 30 Oct 2003 01:20:42 +0000 (01:20 +0000)]
Another day, another bug

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9604 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd a link to the C/C++ front-end building instructions.
Misha Brukman [Thu, 30 Oct 2003 01:19:16 +0000 (01:19 +0000)]
Add a link to the C/C++ front-end building instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9603 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoThe answer to this question is "Yes". Let's make that absolutely clear even to
Misha Brukman [Thu, 30 Oct 2003 01:16:18 +0000 (01:16 +0000)]
The answer to this question is "Yes". Let's make that absolutely clear even to
those just skimming the FAQ.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9602 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoCall me picky, but it's not the state of Illinois' license, it's the
Misha Brukman [Thu, 30 Oct 2003 01:13:56 +0000 (01:13 +0000)]
Call me picky, but it's not the state of Illinois' license, it's the
University's.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9601 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix bug: 2003-10-29-CallSiteResolve.ll & PR70
Chris Lattner [Thu, 30 Oct 2003 00:46:41 +0000 (00:46 +0000)]
Fix bug: 2003-10-29-CallSiteResolve.ll & PR70

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9600 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoNew testcase crashing the instruction combiner
Chris Lattner [Thu, 30 Oct 2003 00:39:25 +0000 (00:39 +0000)]
New testcase crashing the instruction combiner

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9599 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoPrint the names of more opaque types
Chris Lattner [Thu, 30 Oct 2003 00:22:33 +0000 (00:22 +0000)]
Print the names of more opaque types

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9598 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMake sure to print opaque types names if they are available.
Chris Lattner [Thu, 30 Oct 2003 00:12:51 +0000 (00:12 +0000)]
Make sure to print opaque types names if they are available.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9597 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoPass unrecognized options into llvmprof
Chris Lattner [Wed, 29 Oct 2003 21:51:00 +0000 (21:51 +0000)]
Pass unrecognized options into llvmprof

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9596 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd the ability to synthesize function counts from block count information
Chris Lattner [Wed, 29 Oct 2003 21:47:44 +0000 (21:47 +0000)]
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

20 years agoPrint the top 20 most frequently executed blocks. Fix sort predicate problem
Chris Lattner [Wed, 29 Oct 2003 21:41:17 +0000 (21:41 +0000)]
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

20 years agoRefactor code, initial implementation of -insert-block-profiling pass
Chris Lattner [Wed, 29 Oct 2003 21:24:22 +0000 (21:24 +0000)]
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

20 years agoMore bugs fixed!
Chris Lattner [Wed, 29 Oct 2003 20:59:45 +0000 (20:59 +0000)]
More bugs fixed!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9592 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFixed LinkO, LinkP error in TOOLLINKOPTSB
Dinakar Dhurjati [Wed, 29 Oct 2003 20:34:13 +0000 (20:34 +0000)]
Fixed LinkO, LinkP error in TOOLLINKOPTSB

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9591 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoExplicitly cast type, so we aren't passing output_vbr a size_t.
Brian Gaeke [Wed, 29 Oct 2003 20:09:01 +0000 (20:09 +0000)]
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

20 years agoTweak sed commands so that they filter out more # stuff and also
Brian Gaeke [Wed, 29 Oct 2003 20:07:35 +0000 (20:07 +0000)]
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

20 years agoAdd support for utostr(unsigned long)
Brian Gaeke [Wed, 29 Oct 2003 20:06:19 +0000 (20:06 +0000)]
Add support for utostr(unsigned long)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9588 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoNew testcase
Chris Lattner [Wed, 29 Oct 2003 19:18:48 +0000 (19:18 +0000)]
New testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9587 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd two new bugs
Chris Lattner [Wed, 29 Oct 2003 18:49:14 +0000 (18:49 +0000)]
Add two new bugs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9586 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix PR66 & ScalarRepl/2003-10-29-ArrayProblem.ll
Chris Lattner [Wed, 29 Oct 2003 17:55:44 +0000 (17:55 +0000)]
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

20 years agoNew testcase distilled from:
Chris Lattner [Wed, 29 Oct 2003 16:24:10 +0000 (16:24 +0000)]
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

20 years agoAdded TOOLLINKOPTSB to pass options to the linker (e.g. adding search
Dinakar Dhurjati [Wed, 29 Oct 2003 14:28:35 +0000 (14:28 +0000)]
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

20 years agoNew bug fixed
Chris Lattner [Wed, 29 Oct 2003 07:17:13 +0000 (07:17 +0000)]
New bug fixed

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9581 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAnother bug fixed
Chris Lattner [Wed, 29 Oct 2003 06:05:55 +0000 (06:05 +0000)]
Another bug fixed

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9580 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix bug: ConstantMerge/2003-10-28-MergeExternalConstants.ll & PR64
Chris Lattner [Wed, 29 Oct 2003 06:01:26 +0000 (06:01 +0000)]
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

20 years agoNew testcase
Chris Lattner [Wed, 29 Oct 2003 05:51:03 +0000 (05:51 +0000)]
New testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9578 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoPull in stdint.h here, if we have it. Some systems keep
Brian Gaeke [Wed, 29 Oct 2003 04:25:48 +0000 (04:25 +0000)]
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

20 years agoIn VM::create(), comment out almost the whole function if NO_JITS_ENABLED,
Brian Gaeke [Wed, 29 Oct 2003 04:24:09 +0000 (04:24 +0000)]
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

20 years agoAdd more debugging info to help tracing the SlotCalculator.
Alkis Evlogimenos [Wed, 29 Oct 2003 03:12:12 +0000 (03:12 +0000)]
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

20 years agoYet another bugfix for 1.1
Chris Lattner [Wed, 29 Oct 2003 01:26:07 +0000 (01:26 +0000)]
Yet another bugfix for 1.1

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9574 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoNew testcase
Chris Lattner [Wed, 29 Oct 2003 01:23:01 +0000 (01:23 +0000)]
New testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9573 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoCheck in statistifying patch for Bill
Chris Lattner [Tue, 28 Oct 2003 23:14:59 +0000 (23:14 +0000)]
Check in statistifying patch for Bill

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9572 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd fixed PR
Chris Lattner [Tue, 28 Oct 2003 23:13:03 +0000 (23:13 +0000)]
Add fixed PR

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9571 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd new method
Chris Lattner [Tue, 28 Oct 2003 23:10:44 +0000 (23:10 +0000)]
Add new method

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9570 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix PR62, and llvm/test/Regression/CBackend/2003-10-28-CastToPtrToStruct.ll
Chris Lattner [Tue, 28 Oct 2003 23:09:45 +0000 (23:09 +0000)]
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

20 years agoNew testcase, reduced from DOOM.
Brian Gaeke [Tue, 28 Oct 2003 22:54:56 +0000 (22:54 +0000)]
New testcase, reduced from DOOM.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9568 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoCleanup output a bit
Chris Lattner [Tue, 28 Oct 2003 22:53:49 +0000 (22:53 +0000)]
Cleanup output a bit

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9567 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd option for block profiling, pass in the "correct" argv[0] to the program
Chris Lattner [Tue, 28 Oct 2003 22:52:05 +0000 (22:52 +0000)]
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