oota-llvm.git
22 years agoMoved MachineCodeForBB to be an annotation on BasicBlock.
Vikram S. Adve [Mon, 8 Jul 2002 22:31:11 +0000 (22:31 +0000)]
Moved MachineCodeForBB to be an annotation on BasicBlock.

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

22 years agochanges BBsorting and oredering
Anand Shukla [Mon, 8 Jul 2002 19:37:06 +0000 (19:37 +0000)]
changes BBsorting and oredering

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

22 years agosmall corrections
Anand Shukla [Mon, 8 Jul 2002 19:36:39 +0000 (19:36 +0000)]
small corrections

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

22 years agochanged function numbering
Anand Shukla [Mon, 8 Jul 2002 19:36:01 +0000 (19:36 +0000)]
changed function numbering

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

22 years agoAdd new << to allow printing modules by reference.
Anand Shukla [Wed, 3 Jul 2002 16:52:15 +0000 (16:52 +0000)]
Add new << to allow printing modules by reference.

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

22 years ago*** empty log message ***
Chris Lattner [Sun, 30 Jun 2002 16:25:25 +0000 (16:25 +0000)]
*** empty log message ***

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

22 years agoClean up anands patch
Chris Lattner [Sun, 30 Jun 2002 16:25:21 +0000 (16:25 +0000)]
Clean up anands patch

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

22 years agoStrip the symbols out of the bytecode to inflate generated executables less.
Chris Lattner [Sun, 30 Jun 2002 16:25:07 +0000 (16:25 +0000)]
Strip the symbols out of the bytecode to inflate generated executables less.

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

22 years agoYEs, we really do want to sort.
Chris Lattner [Sun, 30 Jun 2002 16:20:02 +0000 (16:20 +0000)]
YEs, we really do want to sort.

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

22 years agoYes, we REALLY DO want to run the reassociate pass.
Chris Lattner [Sun, 30 Jun 2002 16:19:14 +0000 (16:19 +0000)]
Yes, we REALLY DO want to run the reassociate pass.

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

22 years agoRemove diff-cluttering tags
Chris Lattner [Sun, 30 Jun 2002 16:12:03 +0000 (16:12 +0000)]
Remove diff-cluttering tags

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

22 years agoRemove tag that just clutters diffs
Chris Lattner [Sun, 30 Jun 2002 16:08:25 +0000 (16:08 +0000)]
Remove tag that just clutters diffs

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

22 years agoFix anands changes
Chris Lattner [Sun, 30 Jun 2002 16:07:20 +0000 (16:07 +0000)]
Fix anands changes

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

22 years agoConvert tabs to spaces
Chris Lattner [Sun, 30 Jun 2002 16:04:37 +0000 (16:04 +0000)]
Convert tabs to spaces

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

22 years agoFix anand's last checkin
Chris Lattner [Sun, 30 Jun 2002 16:01:15 +0000 (16:01 +0000)]
Fix anand's last checkin

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

22 years agoFix comment
Chris Lattner [Sun, 30 Jun 2002 15:50:09 +0000 (15:50 +0000)]
Fix comment

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

22 years agoCleanup
Chris Lattner [Fri, 28 Jun 2002 22:06:39 +0000 (22:06 +0000)]
Cleanup

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

22 years agochanges for 64bit gcc
Anand Shukla [Tue, 25 Jun 2002 22:07:38 +0000 (22:07 +0000)]
changes for 64bit gcc

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

22 years agoadded include<iostream> for cerr
Anand Shukla [Tue, 25 Jun 2002 22:04:00 +0000 (22:04 +0000)]
added include<iostream> for cerr

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

22 years agoChanges for 64bit gcc
Anand Shukla [Tue, 25 Jun 2002 21:57:48 +0000 (21:57 +0000)]
Changes for 64bit gcc

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

22 years agocorrecting makefile: incorrectly checked in wrong version earlier
Anand Shukla [Tue, 25 Jun 2002 21:44:44 +0000 (21:44 +0000)]
correcting makefile: incorrectly checked in wrong version earlier

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

22 years agoChanges for 64bit gcc
Anand Shukla [Tue, 25 Jun 2002 21:43:28 +0000 (21:43 +0000)]
Changes for 64bit gcc

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

22 years agoadded include<iostream> for cerr
Anand Shukla [Tue, 25 Jun 2002 21:29:10 +0000 (21:29 +0000)]
added include<iostream> for cerr

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

22 years agochanges to make it compatible with 64bit gcc
Anand Shukla [Tue, 25 Jun 2002 21:18:19 +0000 (21:18 +0000)]
changes to make it compatible with 64bit gcc

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

22 years agoadditions and bug fixes
Anand Shukla [Tue, 25 Jun 2002 21:14:58 +0000 (21:14 +0000)]
additions and bug fixes

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

22 years agoadded include<iostream> for cerr
Anand Shukla [Tue, 25 Jun 2002 21:12:25 +0000 (21:12 +0000)]
added include<iostream> for cerr

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

22 years agochanges to make it compatible with 64bit gcc
Anand Shukla [Tue, 25 Jun 2002 21:07:58 +0000 (21:07 +0000)]
changes to make it compatible with 64bit gcc

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

22 years agochanges to make it compatible with 64bit gcc
Anand Shukla [Tue, 25 Jun 2002 20:55:50 +0000 (20:55 +0000)]
changes to make it compatible with 64bit gcc

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

22 years agochanges to make it compatible with 64bit gcc
Anand Shukla [Tue, 25 Jun 2002 20:44:04 +0000 (20:44 +0000)]
changes to make it compatible with 64bit gcc

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

22 years agochanges to make it compatible with 64bit gcc
Anand Shukla [Tue, 25 Jun 2002 20:35:19 +0000 (20:35 +0000)]
changes to make it compatible with 64bit gcc

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

22 years agominor change in removing endl
Anand Shukla [Tue, 25 Jun 2002 20:34:54 +0000 (20:34 +0000)]
minor change in removing endl

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

22 years agoWe must with with GCC 2.95 :(
Chris Lattner [Tue, 25 Jun 2002 20:33:28 +0000 (20:33 +0000)]
We must with with GCC 2.95 :(

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

22 years agochanges to make it compatible with 64bit gcc
Anand Shukla [Tue, 25 Jun 2002 20:22:25 +0000 (20:22 +0000)]
changes to make it compatible with 64bit gcc

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

22 years agoAvoid calling LLVM "Strongly typed"
Chris Lattner [Tue, 25 Jun 2002 20:20:08 +0000 (20:20 +0000)]
Avoid calling LLVM "Strongly typed"

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

22 years agoAdded setSuccessor() method to terminator instructions
Anand Shukla [Tue, 25 Jun 2002 20:17:40 +0000 (20:17 +0000)]
Added setSuccessor() method to terminator instructions

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

22 years agoNew testcase
Chris Lattner [Tue, 25 Jun 2002 19:53:12 +0000 (19:53 +0000)]
New testcase

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

22 years agoAdd borders to truth tables
Chris Lattner [Tue, 25 Jun 2002 18:06:50 +0000 (18:06 +0000)]
Add borders to truth tables

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

22 years agoMinor tuning and fleshing out of the language reference.
Chris Lattner [Tue, 25 Jun 2002 18:03:17 +0000 (18:03 +0000)]
Minor tuning and fleshing out of the language reference.

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

22 years agoBuild all subdirectories
Chris Lattner [Tue, 25 Jun 2002 16:16:20 +0000 (16:16 +0000)]
Build all subdirectories

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

22 years agoMEGAPATCH checkin.
Chris Lattner [Tue, 25 Jun 2002 16:13:24 +0000 (16:13 +0000)]
MEGAPATCH checkin.

For details, See: docs/2002-06-25-MegaPatchInfo.txt

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

22 years agoMEGAPATCH checkin.
Chris Lattner [Tue, 25 Jun 2002 16:13:21 +0000 (16:13 +0000)]
MEGAPATCH checkin.

For details, See: docs/2002-06-25-MegaPatchInfo.txt

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

22 years ago*** empty log message ***
Chris Lattner [Tue, 25 Jun 2002 16:12:52 +0000 (16:12 +0000)]
*** empty log message ***

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

22 years agoDescription of a large patch that I checked in
Chris Lattner [Tue, 25 Jun 2002 16:09:22 +0000 (16:09 +0000)]
Description of a large patch that I checked in

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

22 years agoSimplify the code that adds passes so compilation can stop after any step
Chris Lattner [Tue, 25 Jun 2002 15:57:43 +0000 (15:57 +0000)]
Simplify the code that adds passes so compilation can stop after any step

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

22 years ago* Update with MegaPatch
Chris Lattner [Tue, 25 Jun 2002 15:57:03 +0000 (15:57 +0000)]
* Update with MegaPatch
* Fix various bugs

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

22 years ago* Update to work with Megapatch
Chris Lattner [Tue, 25 Jun 2002 15:56:27 +0000 (15:56 +0000)]
* Update to work with Megapatch
* Add two new checks:
  * PHI nodes must be the first thing in a basic block, all grouped together
  * All basic blocks should only end with terminator insts, not contain them

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

22 years agoRemove DynamicConstantMerge pass, because it did not fit in with the Pass
Chris Lattner [Tue, 25 Jun 2002 15:55:29 +0000 (15:55 +0000)]
Remove DynamicConstantMerge pass, because it did not fit in with the Pass
system correctly.

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

22 years agoRemove "fixers" for problems in GCC generated code that cannot be generated
Chris Lattner [Tue, 25 Jun 2002 15:55:03 +0000 (15:55 +0000)]
Remove "fixers" for problems in GCC generated code that cannot be generated
anymore.

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

22 years agoRelocating Graph.h
Anand Shukla [Tue, 25 Jun 2002 14:28:55 +0000 (14:28 +0000)]
Relocating Graph.h

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

22 years agoTest more thoroughly
Chris Lattner [Mon, 24 Jun 2002 21:37:08 +0000 (21:37 +0000)]
Test more thoroughly

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

22 years agoExpose the analyzer
Chris Lattner [Mon, 24 Jun 2002 21:35:50 +0000 (21:35 +0000)]
Expose the analyzer

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

22 years agoBasic test of the inlinr
Chris Lattner [Mon, 24 Jun 2002 17:46:05 +0000 (17:46 +0000)]
Basic test of the inlinr

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

22 years agoTestcase for unimplemented feature
Chris Lattner [Mon, 24 Jun 2002 17:45:37 +0000 (17:45 +0000)]
Testcase for unimplemented feature

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

22 years agoCheckin descriptive note
Chris Lattner [Mon, 24 Jun 2002 16:49:55 +0000 (16:49 +0000)]
Checkin descriptive note

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

22 years agoMark some stuff as done
Chris Lattner [Mon, 10 Jun 2002 21:15:48 +0000 (21:15 +0000)]
Mark some stuff as done

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

22 years agoNew testcases for verifier
Chris Lattner [Sat, 8 Jun 2002 17:33:16 +0000 (17:33 +0000)]
New testcases for verifier

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

22 years agoFix constness
Chris Lattner [Wed, 5 Jun 2002 18:11:37 +0000 (18:11 +0000)]
Fix constness

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

22 years agoFix Constness problems
Chris Lattner [Wed, 5 Jun 2002 18:08:26 +0000 (18:08 +0000)]
Fix Constness problems

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

22 years agoFix const problems
Chris Lattner [Wed, 5 Jun 2002 17:55:27 +0000 (17:55 +0000)]
Fix const problems

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

22 years agoFix constness problem
Chris Lattner [Wed, 5 Jun 2002 17:49:40 +0000 (17:49 +0000)]
Fix constness problem

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

22 years agoFix constness problems now that the cast operators preserve the constness
Chris Lattner [Wed, 5 Jun 2002 17:38:28 +0000 (17:38 +0000)]
Fix constness problems now that the cast operators preserve the constness
of their argument

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

22 years ago* Be more typesafe: cast<x> now no longer discards constness
Chris Lattner [Tue, 4 Jun 2002 21:58:56 +0000 (21:58 +0000)]
* Be more typesafe: cast<x> now no longer discards constness
* The newly installed version of Bison now really likes there to be ;'s
  after productions.  Add them to avoid tons of warnings.

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

22 years agoDisable debugging output
Chris Lattner [Tue, 4 Jun 2002 03:09:57 +0000 (03:09 +0000)]
Disable debugging output

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

22 years ago*** empty log message ***
Chris Lattner [Mon, 3 Jun 2002 22:10:52 +0000 (22:10 +0000)]
*** empty log message ***

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

22 years agoAllow const bb's to be checked for containment in a loop
Chris Lattner [Mon, 3 Jun 2002 22:10:48 +0000 (22:10 +0000)]
Allow const bb's to be checked for containment in a loop

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

22 years agoAvoid deleting individual instructions until AFTER dead blocks have dropped
Chris Lattner [Tue, 28 May 2002 21:38:16 +0000 (21:38 +0000)]
Avoid deleting individual instructions until AFTER dead blocks have dropped
their references.  This fixes bug:
    test/Regression/Transforms/ADCE/2002-05-28-Crash*.ll

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

22 years agoNew testcase that is a distilled form of the other one
Chris Lattner [Tue, 28 May 2002 21:29:28 +0000 (21:29 +0000)]
New testcase that is a distilled form of the other one

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

22 years agoNew testcase that crashes ADCE
Chris Lattner [Tue, 28 May 2002 21:22:46 +0000 (21:22 +0000)]
New testcase that crashes ADCE

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

22 years agoSimplify the interface to local dce and constprop
Chris Lattner [Sun, 26 May 2002 20:18:35 +0000 (20:18 +0000)]
Simplify the interface to local dce and constprop

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

22 years agoSimplify the interface to local DCE and Constant prop
Chris Lattner [Sun, 26 May 2002 20:18:18 +0000 (20:18 +0000)]
Simplify the interface to local DCE and Constant prop

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

22 years agoSupport opaque type printing a little bit at least
Chris Lattner [Sun, 26 May 2002 20:17:54 +0000 (20:17 +0000)]
Support opaque type printing a little bit at least

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

22 years agoDo not remove type names that contain a .
Chris Lattner [Sun, 26 May 2002 20:17:35 +0000 (20:17 +0000)]
Do not remove type names that contain a .

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

22 years agoFix "unimplemented features":
Chris Lattner [Fri, 24 May 2002 21:33:26 +0000 (21:33 +0000)]
Fix "unimplemented features":
   test/Regression/Transforms/FunctionResolve/retmismatch[12].ll

This makes it much more useful for running benchmarks that are missing
prototypes for some functions.

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

22 years agoTestcases to show what -funcresolve does.
Chris Lattner [Fri, 24 May 2002 21:27:41 +0000 (21:27 +0000)]
Testcases to show what -funcresolve does.

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

22 years agoRun FuncResolve tests
Chris Lattner [Fri, 24 May 2002 21:21:36 +0000 (21:21 +0000)]
Run FuncResolve tests

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

22 years agoSplit the FunctionResolution pass out of CleanGCCOutput.cpp.
Chris Lattner [Fri, 24 May 2002 20:42:13 +0000 (20:42 +0000)]
Split the FunctionResolution pass out of CleanGCCOutput.cpp.

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

22 years agoFix comments to reflect reality
Chris Lattner [Fri, 24 May 2002 20:41:51 +0000 (20:41 +0000)]
Fix comments to reflect reality

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

22 years agoSupport programs that do not #include <malloc.h> or give a full prototype
Chris Lattner [Fri, 24 May 2002 20:29:18 +0000 (20:29 +0000)]
Support programs that do not #include <malloc.h> or give a full prototype
for malloc and free.  Lots of crufty benchmarks are using stuff like:
char *malloc();
void free();

to forward declare malloc and free.  Now we recognize and raise these forms

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

22 years agoNew testcase, to be inspected by hand
Chris Lattner [Thu, 23 May 2002 20:58:45 +0000 (20:58 +0000)]
New testcase, to be inspected by hand

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

22 years agoNo need to run dce with adce right behind!
Chris Lattner [Thu, 23 May 2002 19:27:50 +0000 (19:27 +0000)]
No need to run dce with adce right behind!

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

22 years agoNew testcase
Chris Lattner [Thu, 23 May 2002 18:51:27 +0000 (18:51 +0000)]
New testcase

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

22 years agoMake sure the extracted function has external linkage, so that it doesn't
Chris Lattner [Thu, 23 May 2002 18:36:25 +0000 (18:36 +0000)]
Make sure the extracted function has external linkage, so that it doesn't
get eliminated by globaldce!

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

22 years agoNew testcase
Chris Lattner [Thu, 23 May 2002 18:27:08 +0000 (18:27 +0000)]
New testcase

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

22 years agoFold add X, 0 for floating point types as well
Chris Lattner [Thu, 23 May 2002 17:11:38 +0000 (17:11 +0000)]
Fold add X, 0 for floating point types as well

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

22 years agoFix bug: test/Regression/Transforms/ADCE/2002-05-23-ZeroArgPHITest.ll
Chris Lattner [Thu, 23 May 2002 16:52:34 +0000 (16:52 +0000)]
Fix bug: test/Regression/Transforms/ADCE/2002-05-23-ZeroArgPHITest.ll
Which contains a description of why this is neccesary.

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

22 years agoNew testcase
Chris Lattner [Thu, 23 May 2002 16:51:25 +0000 (16:51 +0000)]
New testcase

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

22 years agoConvert RegClass::IsColorUsedArr from a dynamically allocated array to
Chris Lattner [Thu, 23 May 2002 15:50:03 +0000 (15:50 +0000)]
Convert RegClass::IsColorUsedArr from a dynamically allocated array to
a vector.  This makes asserting on array bounds easier.

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

22 years agoAdd a new setSuccessor method to terminator instructions
Chris Lattner [Thu, 23 May 2002 15:48:41 +0000 (15:48 +0000)]
Add a new setSuccessor method to terminator instructions

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

22 years agoImplement DataTypes.h in terms of inttypes.h
Chris Lattner [Thu, 23 May 2002 15:48:12 +0000 (15:48 +0000)]
Implement DataTypes.h in terms of inttypes.h

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

22 years agoAvoid creating the symbol table if we don't need it.
Chris Lattner [Wed, 22 May 2002 22:53:05 +0000 (22:53 +0000)]
Avoid creating the symbol table if we don't need it.

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

22 years agoSupport function declarations with either %XXX or "XXX" style for now
Chris Lattner [Wed, 22 May 2002 22:33:00 +0000 (22:33 +0000)]
Support function declarations with either %XXX or "XXX" style for now
"XXX" style should be considered deprecated, and will hopefully be removed
in the future.

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

22 years agoPrint out function name with % style instead of "" style
Chris Lattner [Wed, 22 May 2002 22:29:26 +0000 (22:29 +0000)]
Print out function name with % style instead of "" style

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

22 years agoRemove spaces from function names
Chris Lattner [Wed, 22 May 2002 22:28:27 +0000 (22:28 +0000)]
Remove spaces from function names
While I was at it, I converted functions to new style % name

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

22 years agoNew testcase
Chris Lattner [Wed, 22 May 2002 22:17:54 +0000 (22:17 +0000)]
New testcase

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

22 years agoRun profile paths tests
Chris Lattner [Wed, 22 May 2002 22:02:24 +0000 (22:02 +0000)]
Run profile paths tests

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

22 years agoTest cases for profile paths pass
Chris Lattner [Wed, 22 May 2002 22:02:14 +0000 (22:02 +0000)]
Test cases for profile paths pass

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

22 years agoConvert code to use the DEBUG macro so that debug code can simply be
Chris Lattner [Wed, 22 May 2002 21:56:32 +0000 (21:56 +0000)]
Convert code to use the DEBUG macro so that debug code can simply  be
enabled with the -debug command line option.

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

22 years agoFix and implement ADCE to finally work!
Chris Lattner [Wed, 22 May 2002 21:32:16 +0000 (21:32 +0000)]
Fix and implement ADCE to finally work!

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

22 years agoAdd the ADCE pass to gccas finally!
Chris Lattner [Wed, 22 May 2002 21:30:24 +0000 (21:30 +0000)]
Add the ADCE pass to gccas finally!

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

22 years agoNew testcase
Chris Lattner [Wed, 22 May 2002 20:46:30 +0000 (20:46 +0000)]
New testcase

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