oota-llvm.git
22 years agoAdd new BreakCriticalEdges pass
Chris Lattner [Tue, 24 Sep 2002 00:08:39 +0000 (00:08 +0000)]
Add new BreakCriticalEdges pass

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

22 years agoAdd new BreakCriticalEdges pass
Chris Lattner [Tue, 24 Sep 2002 00:08:37 +0000 (00:08 +0000)]
Add new BreakCriticalEdges pass

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

22 years agoThere are no implicit gep forms of load and store anymore
Chris Lattner [Tue, 24 Sep 2002 00:08:01 +0000 (00:08 +0000)]
There are no implicit gep forms of load and store anymore

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

22 years agoMake users of FindUsedTypes not have problems with linkage. This fixes
Chris Lattner [Tue, 24 Sep 2002 00:07:21 +0000 (00:07 +0000)]
Make users of FindUsedTypes not have problems with linkage.  This fixes
Cwriter.

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

22 years agoMake users of FindUsedTypes not have problems with linkage. This fixes
Chris Lattner [Tue, 24 Sep 2002 00:07:17 +0000 (00:07 +0000)]
Make users of FindUsedTypes not have problems with linkage.  This fixes
cwriter.

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

22 years agoConvert to using long indexes instead of uint
Chris Lattner [Mon, 23 Sep 2002 23:41:53 +0000 (23:41 +0000)]
Convert to using long indexes instead of uint

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

22 years agoOptimize away cases like:
Chris Lattner [Mon, 23 Sep 2002 23:39:43 +0000 (23:39 +0000)]
Optimize away cases like:
        %cast109 = cast uint %cast212 to short          ; <short> [#uses=1]
        %cast214 = cast short %cast109 to uint          ; <uint> [#uses=1]
        %cast215 = cast uint %cast214 to short          ; <short> [#uses=1]

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

22 years agoAdd some more testcases for things to get optimized away
Chris Lattner [Mon, 23 Sep 2002 23:39:17 +0000 (23:39 +0000)]
Add some more testcases for things to get optimized away

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

22 years agoFix: ConstantMerge/2002-09-23-CPR-Update.ll
Chris Lattner [Mon, 23 Sep 2002 23:00:46 +0000 (23:00 +0000)]
Fix: ConstantMerge/2002-09-23-CPR-Update.ll

Basically, this bug boiled down to calling replaceUsesOfWith on a constant,
which changed it's shape in an illegal way.  This pass now goes through all
of the trouble neccesary to do the replacement on constants.

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

22 years agoNew testcase distilled from SPEC vortex benchmark
Chris Lattner [Mon, 23 Sep 2002 22:31:04 +0000 (22:31 +0000)]
New testcase distilled from SPEC vortex benchmark

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

22 years agoRun constantmerge tests too
Chris Lattner [Mon, 23 Sep 2002 22:26:23 +0000 (22:26 +0000)]
Run constantmerge tests too

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

22 years agoParenthesis are now added to casts of type array.
Nick Hildenbrandt [Mon, 23 Sep 2002 21:02:50 +0000 (21:02 +0000)]
Parenthesis are now added to casts of type array.

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

22 years ago* Fix bug: CorrelatedExprs/2002-09-23-PHIUpdateBug.ll
Chris Lattner [Mon, 23 Sep 2002 20:06:22 +0000 (20:06 +0000)]
* Fix bug: CorrelatedExprs/2002-09-23-PHIUpdateBug.ll
* Make sure "Changed" is updated correctly

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

22 years agoFix testcase to accurately expose bug
Chris Lattner [Mon, 23 Sep 2002 20:04:54 +0000 (20:04 +0000)]
Fix testcase to accurately expose bug

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

22 years agoNew testcase distilled from SPEC MCF benchmark
Chris Lattner [Mon, 23 Sep 2002 19:54:06 +0000 (19:54 +0000)]
New testcase distilled from SPEC MCF benchmark

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

22 years agoInsert resolved constants into the global map so they are reused correctly.
Chris Lattner [Mon, 23 Sep 2002 18:14:15 +0000 (18:14 +0000)]
Insert resolved constants into the global map so they are reused correctly.
This bug was exposed linking the SPEC benchmark suite.

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

22 years agoGroup #includes better
Chris Lattner [Mon, 23 Sep 2002 17:45:52 +0000 (17:45 +0000)]
Group #includes better

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

22 years agoAllow LLC to be executed on Linux; only the LLC output should not be executed.
Vikram S. Adve [Mon, 23 Sep 2002 14:24:19 +0000 (14:24 +0000)]
Allow LLC to be executed on Linux; only the LLC output should not be executed.

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

22 years agoC tests are run via Makefile.singlesrc so don't run them twice.
Vikram S. Adve [Mon, 23 Sep 2002 14:23:15 +0000 (14:23 +0000)]
C tests are run via Makefile.singlesrc so don't run them twice.

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

22 years agoPut intermediate source files in a subdirectory here instead of with
Vikram S. Adve [Mon, 23 Sep 2002 13:12:28 +0000 (13:12 +0000)]
Put intermediate source files in a subdirectory here instead of with
object files.  Also,

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

22 years agoDisable reassociation pass in LLC until it is fixed.
Vikram S. Adve [Mon, 23 Sep 2002 12:55:50 +0000 (12:55 +0000)]
Disable reassociation pass in LLC until it is fixed.

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

22 years ago'whoami' doesn't exist on solaris
Chris Lattner [Sun, 22 Sep 2002 23:35:11 +0000 (23:35 +0000)]
'whoami' doesn't exist on solaris

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

22 years agoUpdate url
Chris Lattner [Sun, 22 Sep 2002 21:25:12 +0000 (21:25 +0000)]
Update url

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

22 years agoAdd information about the DEBUG() macro and the Statistic template
Chris Lattner [Sun, 22 Sep 2002 19:38:40 +0000 (19:38 +0000)]
Add information about the DEBUG() macro and the Statistic template

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

22 years ago* Remove the -stopraise option, which is no longer needed now that we have
Chris Lattner [Sun, 22 Sep 2002 18:50:22 +0000 (18:50 +0000)]
* Remove the -stopraise option, which is no longer needed now that we have
  the -debug-pass=Arguments option
* Run instcombining BEFORE mem2reg so that getelementptr X, long 0's are
  cleaned up.  This is also important because scalar replacement of aggr.
  will want instcombine to run before it goes as well.

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

22 years agoDon't insert a PHI node to merge "returns" from an inlined function if there
Chris Lattner [Sun, 22 Sep 2002 18:41:25 +0000 (18:41 +0000)]
Don't insert a PHI node to merge "returns" from an inlined function if there
is only a single return from the function!

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

22 years ago* Minor fixes to support C files.
Chris Lattner [Sun, 22 Sep 2002 02:47:15 +0000 (02:47 +0000)]
* Minor fixes to support C files.
* Build burg as a utility now, change its location
* Clean up other rules

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

22 years agoClean up dead rules
Chris Lattner [Sun, 22 Sep 2002 02:41:20 +0000 (02:41 +0000)]
Clean up dead rules

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

22 years agoFix tons of warnings, convert burg to use Makefile.common system, rename
Chris Lattner [Sun, 22 Sep 2002 02:40:40 +0000 (02:40 +0000)]
Fix tons of warnings, convert burg to use Makefile.common system, rename
gram.y to gram.yc so that we don't try to turn it into a .cpp file.

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

22 years agoChanged codegen to add 2 empty slots at the top of stack using StackSlots pass
Anand Shukla [Sat, 21 Sep 2002 05:01:21 +0000 (05:01 +0000)]
Changed codegen to add 2 empty slots at the top of stack using StackSlots pass

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

22 years agoInitial version: it adds 2 empty slots at the top of stack
Anand Shukla [Sat, 21 Sep 2002 04:58:26 +0000 (04:58 +0000)]
Initial version: it adds 2 empty slots at the top of stack

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

22 years agoFix cwriter to not output FP constants in ascii, output them in hex instead.
Chris Lattner [Fri, 20 Sep 2002 23:26:33 +0000 (23:26 +0000)]
Fix cwriter to not output FP constants in ascii, output them in hex instead.
This fixes a number of FP precision problems, making the output of the
power benchmark closer to the right answer.

Unfortunately, this only addresses FP constants used directly in functions.
Constants referred to by global constants (such as an array of FP values)
aren't helped by this.  Until this happens power won't work.

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

22 years agoFix bug: 2002-09-20-VarArgPrototypes.ll
Chris Lattner [Fri, 20 Sep 2002 22:32:30 +0000 (22:32 +0000)]
Fix bug: 2002-09-20-VarArgPrototypes.ll

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

22 years agoBuild with $(CC), not gcc explicitly
Chris Lattner [Fri, 20 Sep 2002 22:32:00 +0000 (22:32 +0000)]
Build with $(CC), not gcc explicitly

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

22 years agoNew testcase for cbe
Chris Lattner [Fri, 20 Sep 2002 22:28:03 +0000 (22:28 +0000)]
New testcase for cbe

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

22 years agoNew testcase for broken type printing for the cwriter
Nick Hildenbrandt [Fri, 20 Sep 2002 21:44:32 +0000 (21:44 +0000)]
New testcase for broken type printing for the cwriter

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

22 years agoChanged uchar to unsigned char in function ParseBytecodeBuffer, because seemingly...
Anand Shukla [Fri, 20 Sep 2002 20:57:54 +0000 (20:57 +0000)]
Changed uchar to unsigned char in function ParseBytecodeBuffer, because seemingly it affects opt in uncertain ways :)

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

22 years agoFix yet another profile linking issue.
Vikram S. Adve [Fri, 20 Sep 2002 18:16:20 +0000 (18:16 +0000)]
Fix yet another profile linking issue.

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

22 years agoAdded checking threshold
Anand Shukla [Fri, 20 Sep 2002 16:44:35 +0000 (16:44 +0000)]
Added checking threshold

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

22 years agoPeephole optimization pass on final machine code.
Vikram S. Adve [Fri, 20 Sep 2002 16:33:03 +0000 (16:33 +0000)]
Peephole optimization pass on final machine code.

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

22 years agoFix link error for profile version. Also, build Burg differently
Vikram S. Adve [Fri, 20 Sep 2002 16:15:57 +0000 (16:15 +0000)]
Fix link error for profile version.  Also, build Burg differently
for different architectures.

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

22 years agoBuild burg separately for different architectures.
Vikram S. Adve [Fri, 20 Sep 2002 16:14:47 +0000 (16:14 +0000)]
Build burg separately for different architectures.

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

22 years agoFix output of typedefs to avoid syntax errors.
Chris Lattner [Fri, 20 Sep 2002 15:20:24 +0000 (15:20 +0000)]
Fix output of typedefs to avoid syntax errors.
  * We now can correctly Cify the Olden-power benchmark

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

22 years ago* Add a couple of comments to the output c code
Chris Lattner [Fri, 20 Sep 2002 15:18:30 +0000 (15:18 +0000)]
* Add a couple of comments to the output c code
* _FIX_ infinite recursion problem, due to typedefs of a structure being
  printed before the structure.

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

22 years agoAnother change that doesn't affect functionality. Since we are only looking
Chris Lattner [Fri, 20 Sep 2002 15:12:13 +0000 (15:12 +0000)]
Another change that doesn't affect functionality.  Since we are only looking
at types in the symbol table, only traverse the type plane, saving a loop nest.

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

22 years agoMake the StructPrinted set only take memory when it's being used.
Chris Lattner [Fri, 20 Sep 2002 15:05:40 +0000 (15:05 +0000)]
Make the StructPrinted set only take memory when it's being used.
rename parseStruct to printContainedStructs

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

22 years agoNo functionality changes, primarily just changing tab indentation to space
Chris Lattner [Fri, 20 Sep 2002 14:56:54 +0000 (14:56 +0000)]
No functionality changes, primarily just changing tab indentation to space
indentation

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

22 years agoCheckin old testcase
Chris Lattner [Fri, 20 Sep 2002 14:37:46 +0000 (14:37 +0000)]
Checkin old testcase

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

22 years agoThe ENABLE_PROFILING flag now builds the profiled libraries and executables
Vikram S. Adve [Fri, 20 Sep 2002 14:03:13 +0000 (14:03 +0000)]
The ENABLE_PROFILING flag now builds the profiled libraries and executables
into a Profile/ directory to keep them separate from the Debug/ and
Release/ versions.  Also, it turns on ENABLE_OPTIMIZED automatically.

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

22 years agoLet CC invoke gcc and not cc. The latter doesn't work with either our
Vikram S. Adve [Fri, 20 Sep 2002 14:01:14 +0000 (14:01 +0000)]
Let CC invoke gcc and not cc.  The latter doesn't work with either our
source or some of our tests.

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

22 years agoInclude our config and system-specific Makefiles to get the
Vikram S. Adve [Fri, 20 Sep 2002 13:56:32 +0000 (13:56 +0000)]
Include our config and system-specific Makefiles to get the
right compilers and paths.

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

22 years agoFix data types header file and declarations to work on Linux.
Vikram S. Adve [Fri, 20 Sep 2002 01:05:16 +0000 (01:05 +0000)]
Fix data types header file and declarations to work on Linux.

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

22 years agoFix to avoid addition on pointers, which is no longer legal.
Vikram S. Adve [Fri, 20 Sep 2002 00:57:37 +0000 (00:57 +0000)]
Fix to avoid addition on pointers, which is no longer legal.

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

22 years agoAdd erase() method for a single element.
Vikram S. Adve [Fri, 20 Sep 2002 00:55:57 +0000 (00:55 +0000)]
Add erase() method for a single element.

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

22 years agoAdd method IGNode::getCombinedDegree to count the sum of the degrees
Vikram S. Adve [Fri, 20 Sep 2002 00:55:04 +0000 (00:55 +0000)]
Add method IGNode::getCombinedDegree to count the sum of the degrees
of two nodes, excluding duplicates.

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

22 years agoAdd PostOpts/ and rename PreSelection/ to PreOpts/.
Vikram S. Adve [Fri, 20 Sep 2002 00:53:53 +0000 (00:53 +0000)]
Add PostOpts/ and rename PreSelection/ to PreOpts/.

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

22 years agoAdd peephole optimization pass at the end of code generation.
Vikram S. Adve [Fri, 20 Sep 2002 00:52:43 +0000 (00:52 +0000)]
Add peephole optimization pass at the end of code generation.

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

22 years agoAdded class MachineOptInfo as interface to target-specific
Vikram S. Adve [Fri, 20 Sep 2002 00:52:09 +0000 (00:52 +0000)]
Added class MachineOptInfo as interface to target-specific
routines supporting machine code optimization.
Also added method MachineInstrInfo::getNOPOpCode().

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

22 years agoInterface to target-specific routines that support machine code optimization.
Vikram S. Adve [Fri, 20 Sep 2002 00:49:21 +0000 (00:49 +0000)]
Interface to target-specific routines that support machine code optimization.

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

22 years agoAdd method MachineInstr::replace to rewrite a machine instruction in place.
Vikram S. Adve [Fri, 20 Sep 2002 00:47:49 +0000 (00:47 +0000)]
Add method MachineInstr::replace to rewrite a machine instruction in place.

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

22 years agoAllow copy coalescing in more cases: if sum of node degrees is more than
Vikram S. Adve [Fri, 20 Sep 2002 00:45:47 +0000 (00:45 +0000)]
Allow copy coalescing in more cases: if sum of node degrees is more than
than #available regs, compute the sum excluding duplicates and if that
is less than #regs, go ahead and coalesce.
Add method IGNode::getCombinedDegree to count excluding duplicates.

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

22 years agoRenamed library preselect to preopts.
Vikram S. Adve [Fri, 20 Sep 2002 00:43:20 +0000 (00:43 +0000)]
Renamed library preselect to preopts.

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

22 years agoPeephole optimization pass on final machine code.
Vikram S. Adve [Fri, 20 Sep 2002 00:42:11 +0000 (00:42 +0000)]
Peephole optimization pass on final machine code.

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

22 years agoFiles moved to CodeGen/PreOpts.
Vikram S. Adve [Fri, 20 Sep 2002 00:30:46 +0000 (00:30 +0000)]
Files moved to CodeGen/PreOpts.

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

22 years agoMoving these files from Code/PreSelection to here.
Vikram S. Adve [Fri, 20 Sep 2002 00:29:28 +0000 (00:29 +0000)]
Moving these files from Code/PreSelection to here.
Original logs for PreSelection.cpp:

  revision 1.2
  date: 2002/09/17 23:50:32;  author: lattner;  state: Exp;  lines: +1 -3
  Don't put default parameter values into .cpp files, it breaks 3.x compilers

  revision 1.1
  date: 2002/09/16 15:31:13;  author: vadve;  state: Exp;
  New preselection pass that specializes LLVM code for a target machine,
  while remaining in legal portable LLVM form and preserving type
  information and type safety.

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

22 years agoReenable these options because they break testing on sparc without them.
Chris Lattner [Thu, 19 Sep 2002 21:46:03 +0000 (21:46 +0000)]
Reenable these options because they break testing on sparc without them.
Conditionalizing them on DISABLE_LLC means they aren't enabled under linux.

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

22 years agoNative CC compiler has the same problem as CXX compiler.
Chris Lattner [Thu, 19 Sep 2002 21:33:10 +0000 (21:33 +0000)]
Native CC compiler has the same problem as CXX compiler.

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

22 years agoDon't run llc tests on linux, they won't work.
Chris Lattner [Thu, 19 Sep 2002 21:32:44 +0000 (21:32 +0000)]
Don't run llc tests on linux, they won't work.

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

22 years agoWorkaround for bug in GCC 3.1.1 iostreams library on sparc. It apprarently
Chris Lattner [Thu, 19 Sep 2002 20:49:25 +0000 (20:49 +0000)]
Workaround for bug in GCC 3.1.1 iostreams library on sparc.  It apprarently
isn't flushing an ostream when it is deleted.

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

22 years agoMinor non-functionality changing changes.
Chris Lattner [Thu, 19 Sep 2002 20:48:48 +0000 (20:48 +0000)]
Minor non-functionality changing changes.

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

22 years agoReorder options to be sorted basically by how important they are.
Chris Lattner [Thu, 19 Sep 2002 19:59:42 +0000 (19:59 +0000)]
Reorder options to be sorted basically by how important they are.

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

22 years ago* Burg is no longer configured in Makefile.config
Chris Lattner [Thu, 19 Sep 2002 19:56:53 +0000 (19:56 +0000)]
* Burg is no longer configured in Makefile.config
* CXX now is configured in Makefile.config (optionally)
* The GCC command is now no longer bin/gcc, it's bin/llvm-gcc
* Minor cleanups

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

22 years agoPlatform specific makefiles specify where to find the GCC frontend for their
Chris Lattner [Thu, 19 Sep 2002 19:44:28 +0000 (19:44 +0000)]
Platform specific makefiles specify where to find the GCC frontend for their
architecture.  The location of the GCC frontend may be overridden by the
Makefile.config file.

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

22 years ago* Move the burg option into Makefile.common, since it is no longer configurable
Chris Lattner [Thu, 19 Sep 2002 19:43:29 +0000 (19:43 +0000)]
* Move the burg option into Makefile.common, since it is no longer configurable
* Makefile.config now should only specify the location of the gcc frontend if it
  is not in the place specified by the platform makefile.

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

22 years agoMove the burg option out of Makefile.config into Makefile.common since
Chris Lattner [Thu, 19 Sep 2002 19:42:24 +0000 (19:42 +0000)]
Move the burg option out of Makefile.config into Makefile.common since
it no longer needs to be configured.

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

22 years agoPoint gccld to the correct library directory.
Chris Lattner [Thu, 19 Sep 2002 19:22:30 +0000 (19:22 +0000)]
Point gccld to the correct library directory.

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

22 years agoAdd an optimization to support the most common access pattern for the
Chris Lattner [Thu, 19 Sep 2002 19:22:11 +0000 (19:22 +0000)]
Add an optimization to support the most common access pattern for the
library.  This speeds debug builds up significantly.

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

22 years agoSwitch over to using the x86 version of the C frontend, by default.
Chris Lattner [Thu, 19 Sep 2002 19:21:18 +0000 (19:21 +0000)]
Switch over to using the x86 version of the C frontend, by default.

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

22 years agoIt turns out that the cannonical name for the llvm-gcc compiler is, well
Chris Lattner [Thu, 19 Sep 2002 19:06:05 +0000 (19:06 +0000)]
It turns out that the cannonical name for the llvm-gcc compiler is, well
llvm-gcc, not gcc.

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

22 years agoAvoid Solaris-specific defines.
Vikram S. Adve [Thu, 19 Sep 2002 18:45:11 +0000 (18:45 +0000)]
Avoid Solaris-specific defines.

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

22 years agoNew testcase that breaks the CFE.
Chris Lattner [Thu, 19 Sep 2002 16:54:57 +0000 (16:54 +0000)]
New testcase that breaks the CFE.

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

22 years agoMake sure that we abort if an error happens as early as neccesary. Before
Chris Lattner [Thu, 19 Sep 2002 16:12:19 +0000 (16:12 +0000)]
Make sure that we abort if an error happens as early as neccesary.  Before
it was possible for the passmanager to continue running passes after the
verifier even if the module was not well formed.

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

22 years agoIndent a comment right, add a new one
Chris Lattner [Thu, 19 Sep 2002 16:06:28 +0000 (16:06 +0000)]
Indent a comment right, add a new one

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

22 years agoAdd support for passing in arbitrary flags to gmake (except -n and -h
Vikram S. Adve [Thu, 19 Sep 2002 14:54:53 +0000 (14:54 +0000)]
Add support for passing in arbitrary flags to gmake (except -n and -h
which are interpreted by this script).

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

22 years agoNew testcase for a bug fixed in the GCC SSA construction algorithm:
Chris Lattner [Thu, 19 Sep 2002 04:23:59 +0000 (04:23 +0000)]
New testcase for a bug fixed in the GCC SSA construction algorithm:
http://gcc.gnu.org/ml/gcc/2002-09/msg00760.html

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

22 years agoAvoid deleting the ostream more than once.
Chris Lattner [Wed, 18 Sep 2002 23:30:05 +0000 (23:30 +0000)]
Avoid deleting the ostream more than once.

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

22 years agoFix to work in new location (utils/) and to use gmake instead of gnumake
Vikram S. Adve [Wed, 18 Sep 2002 23:22:27 +0000 (23:22 +0000)]
Fix to work in new location (utils/) and to use gmake instead of gnumake
since gnumake doesn't exist on our new spiffy Linux machines.

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

22 years agoChange Makefile.config to support building on the group's linux machines
Chris Lattner [Wed, 18 Sep 2002 19:32:17 +0000 (19:32 +0000)]
Change Makefile.config to support building on the group's linux machines

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

22 years agoKEEP_SYMBOLS by default.
Vikram S. Adve [Wed, 18 Sep 2002 11:55:44 +0000 (11:55 +0000)]
KEEP_SYMBOLS by default.

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

22 years agoStrip tools/Debug/ executables by default. Define KEEP_SYMBOLS to
Vikram S. Adve [Wed, 18 Sep 2002 11:55:13 +0000 (11:55 +0000)]
Strip tools/Debug/ executables by default.  Define KEEP_SYMBOLS to
turn off stripping for any executable.

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

22 years agoClean up tags, link to the right .h file
Chris Lattner [Wed, 18 Sep 2002 05:14:25 +0000 (05:14 +0000)]
Clean up tags, link to the right .h file

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

22 years agocorrected small bug, to handle when DIRS is not defined.
Anand Shukla [Wed, 18 Sep 2002 04:29:30 +0000 (04:29 +0000)]
corrected small bug, to handle when DIRS is not defined.

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

22 years agosplit retracing into a separate file
Anand Shukla [Wed, 18 Sep 2002 03:55:26 +0000 (03:55 +0000)]
split retracing into a separate file

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

22 years agoCompile sub-directories in parallel, because they don't have interdependencies
Chris Lattner [Wed, 18 Sep 2002 03:25:58 +0000 (03:25 +0000)]
Compile sub-directories in parallel, because they don't have interdependencies

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

22 years agoAdd support for the new PARALLEL_DIRS option
Chris Lattner [Wed, 18 Sep 2002 03:22:27 +0000 (03:22 +0000)]
Add support for the new PARALLEL_DIRS option

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

22 years agoFinished instruction replacement section, etc. Need better example for replaceAllUse...
Joel Stanley [Wed, 18 Sep 2002 03:17:23 +0000 (03:17 +0000)]
Finished instruction replacement section, etc.  Need better example for replaceAllUsesWith().

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

22 years agoFixed grammar.
Misha Brukman [Wed, 18 Sep 2002 02:35:14 +0000 (02:35 +0000)]
Fixed grammar.

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

22 years agoFixed grammar (User's -> Users).
Misha Brukman [Wed, 18 Sep 2002 02:21:57 +0000 (02:21 +0000)]
Fixed grammar (User's -> Users).

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

22 years agogcc3.1.1 seems much more selective about what it loads from archives, and
Vikram S. Adve [Wed, 18 Sep 2002 02:20:58 +0000 (02:20 +0000)]
gcc3.1.1 seems much more selective about what it loads from archives, and
does not link in many passes that are loaded by gcc2.95.3.  So use object
files instead of archives in many more cases.

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

22 years agoRemoved unnecessary #includes.
Misha Brukman [Wed, 18 Sep 2002 02:07:57 +0000 (02:07 +0000)]
Removed unnecessary #includes.

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