oota-llvm.git
19 years agoa bad case for bitfield insert
Chris Lattner [Fri, 28 Oct 2005 00:20:45 +0000 (00:20 +0000)]
a bad case for bitfield insert

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

19 years agoNow generating instruction itineraries for scheduling. Not my best work, but...
Jim Laskey [Thu, 27 Oct 2005 19:47:21 +0000 (19:47 +0000)]
Now generating instruction itineraries for scheduling.  Not my best work, but...

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

19 years agoStructures used to hold scheduling information.
Jim Laskey [Thu, 27 Oct 2005 18:18:05 +0000 (18:18 +0000)]
Structures used to hold scheduling information.

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

19 years agoupdate project file
Chris Lattner [Thu, 27 Oct 2005 17:39:48 +0000 (17:39 +0000)]
update project file

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

19 years agoDo not sink any instruction with side effects, including vaarg. This fixes
Chris Lattner [Thu, 27 Oct 2005 17:13:11 +0000 (17:13 +0000)]
Do not sink any instruction with side effects, including vaarg.  This fixes
PR640

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

19 years agoFix #include order
Chris Lattner [Thu, 27 Oct 2005 16:34:00 +0000 (16:34 +0000)]
Fix #include order

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

19 years agounbreak the build again
Chris Lattner [Thu, 27 Oct 2005 16:30:44 +0000 (16:30 +0000)]
unbreak the build again

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

19 years agoMove some constant folding functions into LLVMAnalysis since they are used
John Criswell [Thu, 27 Oct 2005 16:00:10 +0000 (16:00 +0000)]
Move some constant folding functions into LLVMAnalysis since they are used
by Analysis and Transformation passes.

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

19 years agoMove some constant folding code shared by Analysis and Transform passes
John Criswell [Thu, 27 Oct 2005 15:54:34 +0000 (15:54 +0000)]
Move some constant folding code shared by Analysis and Transform passes
into the LLVMAnalysis library.
This allows LLVMTranform and LLVMTransformUtils to be archives and linked
with LLVMAnalysis.a, which provides any missing definitions.

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

19 years agoFix DSE to not nuke dead stores unless they redundant store is the same
Chris Lattner [Thu, 27 Oct 2005 07:10:34 +0000 (07:10 +0000)]
Fix DSE to not nuke dead stores unless they redundant store is the same
VT as the killing one.  Fix fixes PR491

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

19 years agoFix typo
Chris Lattner [Thu, 27 Oct 2005 06:26:26 +0000 (06:26 +0000)]
Fix typo

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

19 years agoTeach instcombine to promote stuff like (cast (malloc sbyte, 8*X) to int*)
Chris Lattner [Thu, 27 Oct 2005 06:24:46 +0000 (06:24 +0000)]
Teach instcombine to promote stuff like (cast (malloc sbyte, 8*X) to int*)
into: malloc int, (2*X)

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

19 years agoPromote cases like cast (malloc sbyte, 100) to int* into
Chris Lattner [Thu, 27 Oct 2005 06:12:00 +0000 (06:12 +0000)]
Promote cases like cast (malloc sbyte, 100) to int* into
(malloc [25 x int]) directly without having to convert to
(malloc [100 x sbyte]) first.

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

19 years agoMinor change to this file to support obscure cases with constant array amounts
Chris Lattner [Thu, 27 Oct 2005 05:53:56 +0000 (05:53 +0000)]
Minor change to this file to support obscure cases with constant array amounts

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

19 years agoAdd a simple xform that is useful for bitfield operations.
Chris Lattner [Thu, 27 Oct 2005 05:06:38 +0000 (05:06 +0000)]
Add a simple xform that is useful for bitfield operations.

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

19 years agoFine tune Visual Studio's use of bison/flex.
Jeff Cohen [Thu, 27 Oct 2005 01:10:36 +0000 (01:10 +0000)]
Fine tune Visual Studio's use of bison/flex.

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

19 years agoMake sure to build things in the right order, build with the .o file, not the
Chris Lattner [Thu, 27 Oct 2005 00:53:16 +0000 (00:53 +0000)]
Make sure to build things in the right order, build with the .o file, not the
.a file to unbreak the build after john's change

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

19 years ago1. Remove libraries no longer created from the list of libraries linked into the
John Criswell [Wed, 26 Oct 2005 20:35:13 +0000 (20:35 +0000)]
1. Remove libraries no longer created from the list of libraries linked into the
   SparcV9 JIT.
2. Make LLVMTransformUtils a relinked object file and always link it before
   LLVMAnalysis.a.  These two libraries have circular dependencies on each
   other which creates problem when building the SparcV9 JIT.  This change
   fixes the dependency on all platforms problems with a minimum of fuss.

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

19 years agoint comparison patterns
Andrew Lenharth [Wed, 26 Oct 2005 18:44:45 +0000 (18:44 +0000)]
int comparison patterns

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

19 years agoFix some spello's pointed out by Gabor Greif
Chris Lattner [Wed, 26 Oct 2005 18:41:41 +0000 (18:41 +0000)]
Fix some spello's pointed out by Gabor Greif

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

19 years agoTypo made worse x 2 - take 2.
Jim Laskey [Wed, 26 Oct 2005 18:07:50 +0000 (18:07 +0000)]
Typo made worse x 2 - take 2.

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

19 years agoFix an assert compiling MallocBench/gs
Chris Lattner [Wed, 26 Oct 2005 18:01:11 +0000 (18:01 +0000)]
Fix an assert compiling MallocBench/gs

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

19 years agoTypo x 2
Jim Laskey [Wed, 26 Oct 2005 17:50:22 +0000 (17:50 +0000)]
Typo x 2

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

19 years agoSimplify.
Jim Laskey [Wed, 26 Oct 2005 17:49:21 +0000 (17:49 +0000)]
Simplify.

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

19 years agoSimplify instinfo, set random bits on more fp insts, and fix 1 opcode
Andrew Lenharth [Wed, 26 Oct 2005 17:41:46 +0000 (17:41 +0000)]
Simplify instinfo, set random bits on more fp insts, and fix 1 opcode

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

19 years agoGive full control of subtarget features over to table generated code.
Jim Laskey [Wed, 26 Oct 2005 17:30:34 +0000 (17:30 +0000)]
Give full control of subtarget features over to table generated code.

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

19 years agoAdd attribute name and type to SubtargetFeatures.
Jim Laskey [Wed, 26 Oct 2005 17:28:23 +0000 (17:28 +0000)]
Add attribute name and type to SubtargetFeatures.

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

19 years agofold nested and's early to avoid inefficiencies in MaskedValueIsZero. This
Chris Lattner [Wed, 26 Oct 2005 17:18:16 +0000 (17:18 +0000)]
fold nested and's early to avoid inefficiencies in MaskedValueIsZero.  This
fixes a very slow compile in PR639.

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

19 years agoCondcodes are in the ISD namespace
Chris Lattner [Wed, 26 Oct 2005 17:02:02 +0000 (17:02 +0000)]
Condcodes are in the ISD namespace

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

19 years agoAdd nodes for CondCodeSDNode and setcc, and add a bunch of pattern fragments
Chris Lattner [Wed, 26 Oct 2005 17:00:25 +0000 (17:00 +0000)]
Add nodes for CondCodeSDNode and setcc, and add a bunch of pattern fragments
to make it easy to use them.  This lets you write patterns like:

(set PRRC:$rd, (setne GPRC:$rS, imm:$SH))

and stuff.

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

19 years agoAdd support for CondCode's
Chris Lattner [Wed, 26 Oct 2005 16:59:37 +0000 (16:59 +0000)]
Add support for CondCode's

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

19 years agoFix comment.
Jeff Cohen [Wed, 26 Oct 2005 15:02:21 +0000 (15:02 +0000)]
Fix comment.

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

19 years agoEliminate use of sed in Visual Studio builds.
Jeff Cohen [Wed, 26 Oct 2005 14:48:53 +0000 (14:48 +0000)]
Eliminate use of sed in Visual Studio builds.

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

19 years agoEliminate need for bison/flex in Visual Studio builds.
Jeff Cohen [Wed, 26 Oct 2005 05:37:34 +0000 (05:37 +0000)]
Eliminate need for bison/flex in Visual Studio builds.

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

19 years agoUpdate Visual Studio projects to reflect moved file.
Jeff Cohen [Wed, 26 Oct 2005 05:36:51 +0000 (05:36 +0000)]
Update Visual Studio projects to reflect moved file.

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

19 years agoAdd a regression test for the recent fix for FP_TO_UINT lowering in the ppc
Nate Begeman [Tue, 25 Oct 2005 23:53:21 +0000 (23:53 +0000)]
Add a regression test for the recent fix for FP_TO_UINT lowering in the ppc
backend.

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

19 years agoAdd a note about some bitfield stuff we could be doing better.
Nate Begeman [Tue, 25 Oct 2005 23:50:02 +0000 (23:50 +0000)]
Add a note about some bitfield stuff we could be doing better.

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

19 years agoCorrectly Expand or Promote FP_TO_UINT based on the capabilities of the
Nate Begeman [Tue, 25 Oct 2005 23:48:36 +0000 (23:48 +0000)]
Correctly Expand or Promote FP_TO_UINT based on the capabilities of the
machine.  This allows us to generate great code for i32 FP_TO_UINT now on
targets with 64 bit extensions.

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

19 years agoAllow custom lowered FP_TO_SINT ops in the check for whether a larger
Nate Begeman [Tue, 25 Oct 2005 23:47:25 +0000 (23:47 +0000)]
Allow custom lowered FP_TO_SINT ops in the check for whether a larger
FP_TO_SINT is preferred to a larger FP_TO_UINT.  This seems to be begging
for a TLI.isOperationCustom() helper function.

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

19 years agoautogen undef
Chris Lattner [Tue, 25 Oct 2005 21:03:41 +0000 (21:03 +0000)]
autogen undef

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

19 years agoAdd undef
Chris Lattner [Tue, 25 Oct 2005 21:03:14 +0000 (21:03 +0000)]
Add undef

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

19 years agoAdd a method
Chris Lattner [Tue, 25 Oct 2005 21:02:21 +0000 (21:02 +0000)]
Add a method

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

19 years agoAllow pseudos to have patterns, no functionality change
Chris Lattner [Tue, 25 Oct 2005 20:58:43 +0000 (20:58 +0000)]
Allow pseudos to have patterns, no functionality change

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

19 years agoAutogen fsel
Chris Lattner [Tue, 25 Oct 2005 20:55:47 +0000 (20:55 +0000)]
Autogen fsel

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

19 years agoExpose the fextend on the DAG instead of doing it in the matcher
Chris Lattner [Tue, 25 Oct 2005 20:54:57 +0000 (20:54 +0000)]
Expose the fextend on the DAG instead of doing it in the matcher

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

19 years agoAutogen a few new ppc-specific nodes
Chris Lattner [Tue, 25 Oct 2005 20:41:46 +0000 (20:41 +0000)]
Autogen a few new ppc-specific nodes

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

19 years agoThe dag isel generator generates this now
Chris Lattner [Tue, 25 Oct 2005 20:36:10 +0000 (20:36 +0000)]
The dag isel generator generates this now

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

19 years agoEmit some boilerplate for targets
Chris Lattner [Tue, 25 Oct 2005 20:35:14 +0000 (20:35 +0000)]
Emit some boilerplate for targets

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

19 years agoBe a bit more paranoid about calling SelectNodeTo
Chris Lattner [Tue, 25 Oct 2005 20:26:41 +0000 (20:26 +0000)]
Be a bit more paranoid about calling SelectNodeTo

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

19 years agoFix a couple of minor bugs. The first fixes povray, the second fixes things
Chris Lattner [Tue, 25 Oct 2005 19:32:37 +0000 (19:32 +0000)]
Fix a couple of minor bugs.  The first fixes povray, the second fixes things
if the dag combiner isn't run

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

19 years agoClear a bit in this file that was causing a miscompilation of 178.galgel.
Chris Lattner [Tue, 25 Oct 2005 18:57:30 +0000 (18:57 +0000)]
Clear a bit in this file that was causing a miscompilation of 178.galgel.

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

19 years agoRemove some dead argument names which irritates GCC at certain warning levels.
Chris Lattner [Tue, 25 Oct 2005 17:59:28 +0000 (17:59 +0000)]
Remove some dead argument names which irritates GCC at certain warning levels.

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

19 years agoAdd a missing Module::setTargetTriple method.
Chris Lattner [Tue, 25 Oct 2005 17:58:00 +0000 (17:58 +0000)]
Add a missing Module::setTargetTriple method.

Remove Function::aiterator and Module::giterator typedefs (and const versions)
as they should have been removed when abegin/gbegin were removed.  Thanks to
alkis for bringing this to my attn.

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

19 years agoanalyses after transformations
Chris Lattner [Tue, 25 Oct 2005 17:54:19 +0000 (17:54 +0000)]
analyses after transformations

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

19 years agotransforms before analyses
Chris Lattner [Tue, 25 Oct 2005 17:10:30 +0000 (17:10 +0000)]
transforms before analyses

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

19 years agoRefactored to make room for more stuff (scheduling info.)
Jim Laskey [Tue, 25 Oct 2005 15:16:36 +0000 (15:16 +0000)]
Refactored to make room for more stuff (scheduling info.)

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

19 years agoPreparation of supporting scheduling info. Need to find info based on selected
Jim Laskey [Tue, 25 Oct 2005 15:15:28 +0000 (15:15 +0000)]
Preparation of supporting scheduling info.  Need to find info based on selected
CPU.

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

19 years agoStop using deprecated types
Alkis Evlogimenos [Tue, 25 Oct 2005 11:18:06 +0000 (11:18 +0000)]
Stop using deprecated types

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

19 years agoUpdated bytecode version numbers.
John Criswell [Mon, 24 Oct 2005 17:10:57 +0000 (17:10 +0000)]
Updated bytecode version numbers.

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

19 years agoFix spelling of 'separate'.
Jeff Cohen [Mon, 24 Oct 2005 16:54:55 +0000 (16:54 +0000)]
Fix spelling of 'separate'.

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

19 years agoFixed spelling.
John Criswell [Mon, 24 Oct 2005 16:47:40 +0000 (16:47 +0000)]
Fixed spelling.

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

19 years agoAdded a note to remove CVS directories when copying the sample project to
John Criswell [Mon, 24 Oct 2005 16:43:08 +0000 (16:43 +0000)]
Added a note to remove CVS directories when copying the sample project to
a new project.
Kudos to Rob for suggesting that I add this important step.

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

19 years agoAttempt to make terminology more consistent.
John Criswell [Mon, 24 Oct 2005 16:37:24 +0000 (16:37 +0000)]
Attempt to make terminology more consistent.

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

19 years agoAndrew says that alpha basically works
Chris Lattner [Mon, 24 Oct 2005 16:36:36 +0000 (16:36 +0000)]
Andrew says that alpha basically works

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

19 years agoFixed a grammar issue.
John Criswell [Mon, 24 Oct 2005 16:20:10 +0000 (16:20 +0000)]
Fixed a grammar issue.

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

19 years agoGrammar and punctuation fixes.
John Criswell [Mon, 24 Oct 2005 16:17:18 +0000 (16:17 +0000)]
Grammar and punctuation fixes.

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

19 years agoKeep Visual Studio up to date.
Jeff Cohen [Mon, 24 Oct 2005 15:21:58 +0000 (15:21 +0000)]
Keep Visual Studio up to date.

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

19 years agoFix an incompatibility with GCC 4.1, thanks to Vladimir Merzliakov
Chris Lattner [Mon, 24 Oct 2005 15:04:15 +0000 (15:04 +0000)]
Fix an incompatibility with GCC 4.1, thanks to Vladimir Merzliakov
for pointing this out!

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

19 years agodo not wrap this whole file in namespace llvm
Chris Lattner [Mon, 24 Oct 2005 06:38:35 +0000 (06:38 +0000)]
do not wrap this whole file in namespace llvm

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

19 years agoHandle allocations that, even after removing dead uses, still have more than
Chris Lattner [Mon, 24 Oct 2005 06:35:18 +0000 (06:35 +0000)]
Handle allocations that, even after removing dead uses, still have more than
one use (but one is a cast).  This handles the very common case of:

 X = alloc [n x byte]
 Y = cast X to somethingbetter
 seteq X, null

In order to avoid infinite looping when there are multiple casts, we only
allow this if the xform is strictly increasing the alignment of the
allocation.

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

19 years agoFix a bug where we would 'promote' an allocation from one type to another
Chris Lattner [Mon, 24 Oct 2005 06:26:18 +0000 (06:26 +0000)]
Fix a bug where we would 'promote' an allocation from one type to another
where the second has less alignment required.  If we had explicit alignment
support in the IR, we could handle this case, but we can't until we do.

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

19 years agoBefore promoting a malloc type, remove dead uses. This makes instcombine
Chris Lattner [Mon, 24 Oct 2005 06:22:12 +0000 (06:22 +0000)]
Before promoting a malloc type, remove dead uses.  This makes instcombine
more effective at promoting these allocations, catching them earlier in the
compile process.

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

19 years agoPull some code out into a function, no functionality change
Chris Lattner [Mon, 24 Oct 2005 06:03:58 +0000 (06:03 +0000)]
Pull some code out into a function, no functionality change

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

19 years agoMove the END_WITH_NULL marker. Vladimir suggests that this works better with
Chris Lattner [Mon, 24 Oct 2005 05:03:46 +0000 (05:03 +0000)]
Move the END_WITH_NULL marker.  Vladimir suggests that this works better with
GCC 4.1.  I tried it with 4.0 and 3.3 and it seems fine.

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

19 years agoMake this build with GCC 4.1, patch contributed by Vladimir A. Merzliakov!
Chris Lattner [Mon, 24 Oct 2005 04:51:35 +0000 (04:51 +0000)]
Make this build with GCC 4.1, patch contributed by Vladimir A. Merzliakov!

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

19 years agoThis pass is gone
Chris Lattner [Mon, 24 Oct 2005 04:18:05 +0000 (04:18 +0000)]
This pass is gone

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

19 years agothis pass is gone
Chris Lattner [Mon, 24 Oct 2005 04:17:31 +0000 (04:17 +0000)]
this pass is gone

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

19 years agoThis RA no longer exists
Chris Lattner [Mon, 24 Oct 2005 04:15:09 +0000 (04:15 +0000)]
This RA no longer exists

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

19 years agoAlkis agrees that that iterative scan allocator isn't going to be worked on
Chris Lattner [Mon, 24 Oct 2005 04:14:30 +0000 (04:14 +0000)]
Alkis agrees that that iterative scan allocator isn't going to be worked on
in the future, remove it.

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

19 years agoRemove a prototype
Chris Lattner [Mon, 24 Oct 2005 04:13:21 +0000 (04:13 +0000)]
Remove a prototype

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

19 years agoUpdate Visual Studio projects to account for recent changes.
Jeff Cohen [Mon, 24 Oct 2005 02:57:24 +0000 (02:57 +0000)]
Update Visual Studio projects to account for recent changes.

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

19 years agoRemove this pass, it is not useful
Chris Lattner [Mon, 24 Oct 2005 02:35:43 +0000 (02:35 +0000)]
Remove this pass, it is not useful

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

19 years agoThis pass is very old and quite useless, remove it.
Chris Lattner [Mon, 24 Oct 2005 02:35:24 +0000 (02:35 +0000)]
This pass is very old and quite useless, remove it.

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

19 years agoThree of these have been removed, as warned
Chris Lattner [Mon, 24 Oct 2005 02:33:44 +0000 (02:33 +0000)]
Three of these have been removed, as warned

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

19 years agoRemove some beta code that no longer has an owner.
Chris Lattner [Mon, 24 Oct 2005 02:32:41 +0000 (02:32 +0000)]
Remove some beta code that no longer has an owner.

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

19 years agoDo not build the ProfilePaths directory anymore
Chris Lattner [Mon, 24 Oct 2005 02:31:49 +0000 (02:31 +0000)]
Do not build the ProfilePaths directory anymore

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

19 years agoRemove a now-unneeded library
Chris Lattner [Mon, 24 Oct 2005 02:31:05 +0000 (02:31 +0000)]
Remove a now-unneeded library

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

19 years agoDon't link these three passes in anymore
Chris Lattner [Mon, 24 Oct 2005 02:30:25 +0000 (02:30 +0000)]
Don't link these three passes in anymore

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

19 years agoDONT_BUILD_RELINKED is gone and implied by BUILD_ARCHIVE now
Chris Lattner [Mon, 24 Oct 2005 02:26:13 +0000 (02:26 +0000)]
DONT_BUILD_RELINKED is gone and implied by BUILD_ARCHIVE now

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

19 years agoNow that all libraries are built in either .o or .a form, make BUILD_ARCHIVE
Chris Lattner [Mon, 24 Oct 2005 02:21:45 +0000 (02:21 +0000)]
Now that all libraries are built in either .o or .a form, make BUILD_ARCHIVE
default to turning off building of relinked objects.

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

19 years agoonly build .a version of this library
Chris Lattner [Mon, 24 Oct 2005 02:14:49 +0000 (02:14 +0000)]
only build .a version of this library

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

19 years agoOnly build .a file versions of these libraries, instead of .a and .o versions.
Chris Lattner [Mon, 24 Oct 2005 02:11:51 +0000 (02:11 +0000)]
Only build .a file versions of these libraries, instead of .a and .o versions.
This should speed up build times.

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

19 years agoThere is no need to build an archive version of this library
Chris Lattner [Mon, 24 Oct 2005 02:09:03 +0000 (02:09 +0000)]
There is no need to build an archive version of this library

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

19 years agoThis file is hopelessly out of date
Chris Lattner [Mon, 24 Oct 2005 02:07:08 +0000 (02:07 +0000)]
This file is hopelessly out of date

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

19 years agoOnly build .a file versions of these libraries, instead of .a and .o versions.
Chris Lattner [Mon, 24 Oct 2005 02:05:35 +0000 (02:05 +0000)]
Only build .a file versions of these libraries, instead of .a and .o versions.
This should speed up build times.

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

19 years agoOnly build .a file versions of these libraries, instead of .a and .o versions.
Chris Lattner [Mon, 24 Oct 2005 01:59:48 +0000 (01:59 +0000)]
Only build .a file versions of these libraries, instead of .a and .o versions.
This should speed up build times.

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

19 years agouse archives when possible
Chris Lattner [Mon, 24 Oct 2005 01:52:15 +0000 (01:52 +0000)]
use archives when possible

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

19 years agoMake sure that anything using the ADCE pass pulls in the UnifyFunctionExitNodes
Chris Lattner [Mon, 24 Oct 2005 01:40:23 +0000 (01:40 +0000)]
Make sure that anything using the ADCE pass pulls in the UnifyFunctionExitNodes
code

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

19 years agopull in the .a version of scalaropts lib to reduce the size of programs
Chris Lattner [Mon, 24 Oct 2005 01:15:14 +0000 (01:15 +0000)]
pull in the .a version of scalaropts lib to reduce the size of programs
using the JIT

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

19 years agopull in the archive version of this lib to reduce exe size
Chris Lattner [Mon, 24 Oct 2005 01:13:21 +0000 (01:13 +0000)]
pull in the archive version of this lib to reduce exe size

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