oota-llvm.git
20 years agoMove files to test/Regression/Analysis/DSGraph
Chris Lattner [Sat, 28 Jun 2003 23:17:26 +0000 (23:17 +0000)]
Move files to test/Regression/Analysis/DSGraph

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

20 years agoNo use in having CFGSimplify and SimplifyCFG directories!
Chris Lattner [Sat, 28 Jun 2003 23:14:35 +0000 (23:14 +0000)]
No use in having CFGSimplify and SimplifyCFG directories!

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

20 years agoEliminate explicit control flow in tests
Chris Lattner [Sat, 28 Jun 2003 23:13:12 +0000 (23:13 +0000)]
Eliminate explicit control flow in tests

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

20 years agoUse not instead of grep-not
Chris Lattner [Sat, 28 Jun 2003 23:02:51 +0000 (23:02 +0000)]
Use not instead of grep-not

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

20 years agoSwitch tests over to use the 'not' script, instead of explicit control flow
Chris Lattner [Sat, 28 Jun 2003 23:02:20 +0000 (23:02 +0000)]
Switch tests over to use the 'not' script, instead of explicit control flow

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

20 years agoForce the interpreter for this testcase
Chris Lattner [Sat, 28 Jun 2003 23:02:04 +0000 (23:02 +0000)]
Force the interpreter for this testcase

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

20 years agoGet rid of control flow in the test
Chris Lattner [Sat, 28 Jun 2003 22:53:07 +0000 (22:53 +0000)]
Get rid of control flow in the test

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

20 years agoNew script for testrunner programs
Chris Lattner [Sat, 28 Jun 2003 22:52:52 +0000 (22:52 +0000)]
New script for testrunner programs

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

20 years agoConvert scripts from using explicit control flow to use the new grep-not script
Chris Lattner [Sat, 28 Jun 2003 22:44:42 +0000 (22:44 +0000)]
Convert scripts from using explicit control flow to use the new grep-not script

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

20 years agoHandle quoting right
Chris Lattner [Sat, 28 Jun 2003 22:43:58 +0000 (22:43 +0000)]
Handle quoting right

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

20 years agoMake the TestRunner tests not print out horrible things when they run
Chris Lattner [Sat, 28 Jun 2003 22:35:46 +0000 (22:35 +0000)]
Make the TestRunner tests not print out horrible things when they run

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

20 years agoFix testcase
Chris Lattner [Sat, 28 Jun 2003 22:31:37 +0000 (22:31 +0000)]
Fix testcase

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

20 years agoInitial checkin of grep-not script
Chris Lattner [Sat, 28 Jun 2003 22:28:31 +0000 (22:28 +0000)]
Initial checkin of grep-not script

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

20 years agoAdd the test/Scripts directory to the path used by TestRunner
Chris Lattner [Sat, 28 Jun 2003 22:21:39 +0000 (22:21 +0000)]
Add the test/Scripts directory to the path used by TestRunner

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

20 years agoDescribe directory
Chris Lattner [Sat, 28 Jun 2003 22:20:19 +0000 (22:20 +0000)]
Describe directory

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

20 years agoImprove the make rule
Chris Lattner [Sat, 28 Jun 2003 22:16:59 +0000 (22:16 +0000)]
Improve the make rule

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

20 years agoPropagate globals graph from the local to bu to td globals graphs. This
Chris Lattner [Sat, 28 Jun 2003 22:14:55 +0000 (22:14 +0000)]
Propagate globals graph from the local to bu to td globals graphs.  This
fixes bug: DSGraph/buglobals.ll

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

20 years agoDrop references to globals who do exist in the globals graph, but are never
Chris Lattner [Sat, 28 Jun 2003 22:10:58 +0000 (22:10 +0000)]
Drop references to globals who do exist in the globals graph, but are never
read or written to.  Keep track of how many times this happens.  This should
be good for deleting things like references to type information in C++ classes

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

20 years agoAvoid double negatives
Chris Lattner [Sat, 28 Jun 2003 21:58:28 +0000 (21:58 +0000)]
Avoid double negatives

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

20 years agoAdd new DSGraph::ScalarMapTy typedef to avoid pulling representation issues
Chris Lattner [Sat, 28 Jun 2003 21:57:13 +0000 (21:57 +0000)]
Add new DSGraph::ScalarMapTy typedef to avoid pulling representation issues
into callers of getScalarMap

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

20 years agoAdd new 'isComplete' method
Chris Lattner [Sat, 28 Jun 2003 21:56:42 +0000 (21:56 +0000)]
Add new 'isComplete' method

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

20 years agoNew testcase
Chris Lattner [Sat, 28 Jun 2003 21:56:22 +0000 (21:56 +0000)]
New testcase

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

20 years agoNew pass to perform DSA based optimizations. Initially we just support turning
Chris Lattner [Sat, 28 Jun 2003 21:54:55 +0000 (21:54 +0000)]
New pass to perform DSA based optimizations.  Initially we just support turning
globals into constants if we can prove it's safe

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

20 years agoNew makefile for Dsgraph tests
Chris Lattner [Sat, 28 Jun 2003 21:16:38 +0000 (21:16 +0000)]
New makefile for Dsgraph tests

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

20 years agoAdd DSGraph to the tests
Chris Lattner [Sat, 28 Jun 2003 21:16:27 +0000 (21:16 +0000)]
Add DSGraph to the tests

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

20 years agoAvoid printing out huge structures or arrays if they are just filled with zeros
Chris Lattner [Sat, 28 Jun 2003 20:08:24 +0000 (20:08 +0000)]
Avoid printing out huge structures or arrays if they are just filled with zeros

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

20 years agoAdd support for a new zeroinitializer token which can be used to get rid of
Chris Lattner [Sat, 28 Jun 2003 20:01:34 +0000 (20:01 +0000)]
Add support for a new zeroinitializer token which can be used to get rid of
huge arrays of zero initialized values

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

20 years agoAdd test for new zeroinitializer token
Chris Lattner [Sat, 28 Jun 2003 20:01:03 +0000 (20:01 +0000)]
Add test for new zeroinitializer token

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

20 years agojmp_buf is really a pointer type that is passed around...
Chris Lattner [Sat, 28 Jun 2003 19:29:34 +0000 (19:29 +0000)]
jmp_buf is really a pointer type that is passed around...

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

20 years agoAdd support for the Invoke instruction!
Chris Lattner [Sat, 28 Jun 2003 17:53:05 +0000 (17:53 +0000)]
Add support for the Invoke instruction!

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

20 years agoNew testcase for invoke support
Chris Lattner [Sat, 28 Jun 2003 17:52:38 +0000 (17:52 +0000)]
New testcase for invoke support

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

20 years agoPreserve compatibility with non-gcc compilers
Chris Lattner [Sat, 28 Jun 2003 17:15:12 +0000 (17:15 +0000)]
Preserve compatibility with non-gcc compilers

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

20 years agoFix bug: CBackend/2003-06-28-LinkOnceGlobalVars.llx
Chris Lattner [Sat, 28 Jun 2003 17:08:36 +0000 (17:08 +0000)]
Fix bug: CBackend/2003-06-28-LinkOnceGlobalVars.llx

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

20 years agoNew testcase
Chris Lattner [Sat, 28 Jun 2003 17:07:23 +0000 (17:07 +0000)]
New testcase

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

20 years agoAllow the inlining limit to be controlled from the command line!
Chris Lattner [Sat, 28 Jun 2003 15:57:04 +0000 (15:57 +0000)]
Allow the inlining limit to be controlled from the command line!

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

20 years agoAdd support for 'unsigned' command line arguments
Chris Lattner [Sat, 28 Jun 2003 15:47:20 +0000 (15:47 +0000)]
Add support for 'unsigned' command line arguments

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

21 years agoAdded code to the clean rule that deletes files placed in the source directory.
John Criswell [Fri, 27 Jun 2003 17:03:20 +0000 (17:03 +0000)]
Added code to the clean rule that deletes files placed in the source directory.
These files interfer with a second build attempt.

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

21 years agoAdded the OPTIONAL_DIRS variable for specifying optional directories to build.
John Criswell [Fri, 27 Jun 2003 16:58:44 +0000 (16:58 +0000)]
Added the OPTIONAL_DIRS variable for specifying optional directories to build.

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

21 years agoNew testcase that crashes the cfe
Chris Lattner [Fri, 27 Jun 2003 02:37:53 +0000 (02:37 +0000)]
New testcase that crashes the cfe

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

21 years agoNice tasty llc fixes. These should fix LLC for x86 for everything in
Brian Gaeke [Fri, 27 Jun 2003 00:00:48 +0000 (00:00 +0000)]
Nice tasty llc fixes. These should fix LLC for x86 for everything in
SingleSource except oopack and Oscar.  (Sorry, Oscar.)

include/llvm/Target/TargetInstrInfo.h: Remove virtual print method. Add
 accessors for ImplicitUses/Defs.
lib/Target/TargetInstrInfo.cpp: Remove virtual print method. If you
 really wanted this, just use MI->print(O, TM); instead...
lib/Target/X86:
FloatingPoint.cpp: ...like this.
X86InstrInfo.h: Remove virtual print method. Define the PrintImplUses
 target-specific flag bit.
X86InstrInfo.def: Add the PrintImplUses flag to all the instructions
 which implicitly use CL, because the assembler needs to see the CL in
 order to generate the right instruction.
Printer.cpp: Ditch fnIndex at Chris's request. Now we use CurrentFnName
  to name constants in the constant pool for each function instead. This
  avoids keeping state between runOnMachineFunction() invocations, which
  is a no-no. Having MangledGlobals be global is a bogon I'd like to get
  rid of too, but making it a static member of Printer causes link errors
  (why???).
 Make NumberForBB into a member of Printer instead of a global, too.
 Make printOp and printMemReference into methods of Printer.
 X86InstrInfo::print is now Printer::printMachineInstruction, because
  TargetInstrInfo::print is history. (Because of this, we have to qualify
  the names of some TargetInstrInfo methods we call.)
 Print out the ImplicitUses field of any instruction we print that has
  the PrintImplUses bit set.

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

21 years agoHere are the notes from our Reoptimizer meetings.
Brian Gaeke [Thu, 26 Jun 2003 20:37:42 +0000 (20:37 +0000)]
Here are the notes from our Reoptimizer meetings.

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

21 years agoModify script to support checkins on branches
Chris Lattner [Thu, 26 Jun 2003 20:11:07 +0000 (20:11 +0000)]
Modify script to support checkins on branches

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

21 years agoNumber constants from constant pool as CPIf_i where f is the function index
Brian Gaeke [Thu, 26 Jun 2003 18:02:30 +0000 (18:02 +0000)]
Number constants from constant pool as CPIf_i where f is the function index
and i is the constant pool index.

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

21 years agoAdd a testcase to ensure that ctor/dtor attributes work in C
Chris Lattner [Thu, 26 Jun 2003 14:56:36 +0000 (14:56 +0000)]
Add a testcase to ensure that ctor/dtor attributes work in C

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

21 years agoAdd support to globaldce for deleting dead function prototypes
Chris Lattner [Thu, 26 Jun 2003 05:41:18 +0000 (05:41 +0000)]
Add support to globaldce for deleting dead function prototypes

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

21 years agoWhen internalizing global ctor/dtor list, also mark it constant. This is gross, but
Chris Lattner [Thu, 26 Jun 2003 05:30:40 +0000 (05:30 +0000)]
When internalizing global ctor/dtor list, also mark it constant.  This is gross, but
until DSA is working all of the time and is totally reliable, we do this.

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

21 years agoRun the simplify CFG pass after instcombine which has the effect of deleting
Chris Lattner [Thu, 26 Jun 2003 05:29:50 +0000 (05:29 +0000)]
Run the simplify CFG pass after instcombine which has the effect of deleting
ALL of the global ctor/dtor stuff if it is not used!

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

21 years agoNew variable which is just the GCCLD tool
Chris Lattner [Thu, 26 Jun 2003 05:28:00 +0000 (05:28 +0000)]
New variable which is just the GCCLD tool

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

21 years agoImplement more aggressive folding of constant GEP instructions
Chris Lattner [Thu, 26 Jun 2003 05:22:45 +0000 (05:22 +0000)]
Implement more aggressive folding of constant GEP instructions

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

21 years agoAdd support for elimination of load instruction from global constants
Chris Lattner [Thu, 26 Jun 2003 05:06:25 +0000 (05:06 +0000)]
Add support for elimination of load instruction from global constants

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

21 years agoadd tests for elimination of loads
Chris Lattner [Thu, 26 Jun 2003 05:05:51 +0000 (05:05 +0000)]
add tests for elimination of loads

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

21 years agoMove the instcombine pass before globaldce, so that if globals are made dead by instc...
Chris Lattner [Thu, 26 Jun 2003 04:32:31 +0000 (04:32 +0000)]
Move the instcombine pass before globaldce, so that if globals are made dead by instcombine, that they can be deleted.

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

21 years agoDon't register the destructors if the list is empty
Chris Lattner [Thu, 26 Jun 2003 04:20:38 +0000 (04:20 +0000)]
Don't register the destructors if the list is empty

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

21 years agoIntegrate the C writer's name mangler.
Brian Gaeke [Wed, 25 Jun 2003 22:00:39 +0000 (22:00 +0000)]
Integrate the C writer's name mangler.

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

21 years agoFirst draft of X86 LLC backend. This should be OK for small programs like
Brian Gaeke [Wed, 25 Jun 2003 18:01:07 +0000 (18:01 +0000)]
First draft of X86 LLC backend. This should be OK for small programs like
Shootout, but it has some issues with bigger programs. Work in progress.

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

21 years agoAdd test for instcombine -1*X -> -X
Chris Lattner [Wed, 25 Jun 2003 17:10:34 +0000 (17:10 +0000)]
Add test for instcombine -1*X -> -X

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

21 years agoInstcombine: X * -1 -> -X
Chris Lattner [Wed, 25 Jun 2003 17:09:20 +0000 (17:09 +0000)]
Instcombine:  X * -1 -> -X

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

21 years agoFix bug: LevelRaise/2003-06-25-ExprAnalysis.ll
Chris Lattner [Wed, 25 Jun 2003 17:09:03 +0000 (17:09 +0000)]
Fix bug: LevelRaise/2003-06-25-ExprAnalysis.ll

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

21 years agoNew testcase
Chris Lattner [Wed, 25 Jun 2003 17:08:34 +0000 (17:08 +0000)]
New testcase

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

21 years agoFix bug: Mem2Reg/2003-06-26-IterativePromote.ll
Chris Lattner [Wed, 25 Jun 2003 14:58:56 +0000 (14:58 +0000)]
Fix bug: Mem2Reg/2003-06-26-IterativePromote.ll

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

21 years agoNew testcase
Chris Lattner [Wed, 25 Jun 2003 14:55:30 +0000 (14:55 +0000)]
New testcase

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

21 years agoRemove completed tasks
Chris Lattner [Wed, 25 Jun 2003 14:31:06 +0000 (14:31 +0000)]
Remove completed tasks

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

21 years ago- Fixed name mangling conditions to handle 'linkonce' linkage type. In
Joel Stanley [Wed, 25 Jun 2003 04:52:09 +0000 (04:52 +0000)]
- Fixed name mangling conditions to handle 'linkonce' linkage type. In
particular, name mangling for GlobalValues only occurs when the linkage type is
internal or when the name must be mangled to avoid a collision.  See comments in
CWriter::getValueName for more information.

- 'inline' keyword is now emitted for functions with 'linkonce' linkage type.

- Fixed typos.

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

21 years agoTry to run cleanups even if nothing was modified in the preview passes
Chris Lattner [Wed, 25 Jun 2003 04:13:52 +0000 (04:13 +0000)]
Try to run cleanups even if nothing was modified in the preview passes

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

21 years agoRun dead arg elimination, and tell it that it's ok to hack up non-internal functions
Chris Lattner [Wed, 25 Jun 2003 04:13:36 +0000 (04:13 +0000)]
Run dead arg elimination, and tell it that it's ok to hack up non-internal functions

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

21 years agoAdd argument to DAE to allow operation on non-internal functions
Chris Lattner [Wed, 25 Jun 2003 04:12:49 +0000 (04:12 +0000)]
Add argument to DAE to allow operation on non-internal functions

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

21 years agoIt seems likely that floats would need a cast too, because they are
Brian Gaeke [Wed, 25 Jun 2003 03:05:33 +0000 (03:05 +0000)]
It seems likely that floats would need a cast too, because they are
ordinarily promoted to doubles.

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

21 years agoNew testcase
Chris Lattner [Tue, 24 Jun 2003 23:40:27 +0000 (23:40 +0000)]
New testcase

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

21 years agoDon't print message, remove temp files
Chris Lattner [Tue, 24 Jun 2003 23:38:09 +0000 (23:38 +0000)]
Don't print message, remove temp files

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

21 years agoFix bug: ADCE/2003-06-24-BadSuccessor.ll
Chris Lattner [Tue, 24 Jun 2003 23:02:45 +0000 (23:02 +0000)]
Fix bug: ADCE/2003-06-24-BadSuccessor.ll

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

21 years agoNew testcase
Chris Lattner [Tue, 24 Jun 2003 22:58:05 +0000 (22:58 +0000)]
New testcase

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

21 years agoMake assertion more descriptive
Chris Lattner [Tue, 24 Jun 2003 22:20:19 +0000 (22:20 +0000)]
Make assertion more descriptive

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

21 years agoModernize testcase
Chris Lattner [Tue, 24 Jun 2003 21:51:03 +0000 (21:51 +0000)]
Modernize testcase

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

21 years agoDo not mark ALL terminators live if any instruciton in the block is live. We only
Chris Lattner [Tue, 24 Jun 2003 21:49:45 +0000 (21:49 +0000)]
Do not mark ALL terminators live if any instruciton in the block is live.  We only
want to mark it live if it is an unconditional branch.  This fixes bug:
ADCE/2002-05-28-Crash.ll and makes this pass _much_ more useful.

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

21 years agomodernize testcase
Chris Lattner [Tue, 24 Jun 2003 21:23:50 +0000 (21:23 +0000)]
modernize testcase

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

21 years agoMake sure adce is basically working!
Chris Lattner [Tue, 24 Jun 2003 21:22:09 +0000 (21:22 +0000)]
Make sure adce is basically working!

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

21 years agoModernize testcases
Chris Lattner [Tue, 24 Jun 2003 21:21:31 +0000 (21:21 +0000)]
Modernize testcases

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

21 years agoFix bug: SCCP/2003-06-24-OverdefinedPHIValue.ll
Chris Lattner [Tue, 24 Jun 2003 20:29:52 +0000 (20:29 +0000)]
Fix bug: SCCP/2003-06-24-OverdefinedPHIValue.ll

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

21 years agoNew testcase
Chris Lattner [Tue, 24 Jun 2003 20:29:36 +0000 (20:29 +0000)]
New testcase

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

21 years agoFix bug: TailDup/2003-06-24-Simpleloop.ll
Chris Lattner [Tue, 24 Jun 2003 19:48:06 +0000 (19:48 +0000)]
Fix bug: TailDup/2003-06-24-Simpleloop.ll

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

21 years agoTestcase reduced by bugpoint
Chris Lattner [Tue, 24 Jun 2003 19:17:37 +0000 (19:17 +0000)]
Testcase reduced by bugpoint

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

21 years agoRun the tail dup tests
Chris Lattner [Tue, 24 Jun 2003 18:49:51 +0000 (18:49 +0000)]
Run the tail dup tests

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

21 years agoPrevented inclusion of (non-existent) stdint.h on Sparc.
Joel Stanley [Tue, 24 Jun 2003 02:46:47 +0000 (02:46 +0000)]
Prevented inclusion of (non-existent) stdint.h on Sparc.

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

21 years agoImplement new transforms:
Chris Lattner [Mon, 23 Jun 2003 21:59:52 +0000 (21:59 +0000)]
Implement new transforms:
  Replace (cast (sub A, B) to bool) -> (setne A, B)
  Replace (cast (add A, B) to bool) -> (setne A, -B)

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

21 years agoFix comment
Chris Lattner [Mon, 23 Jun 2003 21:52:59 +0000 (21:52 +0000)]
Fix comment

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

21 years agoYet another testcase
Chris Lattner [Mon, 23 Jun 2003 21:49:25 +0000 (21:49 +0000)]
Yet another testcase

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

21 years agoTest cases for when casts to bool can be eliminated
Chris Lattner [Mon, 23 Jun 2003 21:48:26 +0000 (21:48 +0000)]
Test cases for when casts to bool can be eliminated

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

21 years agoFix 2003-06-23-PromotedExprs.llx -- if we are adding two bytes we better
Brian Gaeke [Mon, 23 Jun 2003 20:00:51 +0000 (20:00 +0000)]
Fix 2003-06-23-PromotedExprs.llx -- if we are adding two bytes we better
explicitly cast the result to be a byte, or C will gleefully promote it
to int.

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

21 years agoNew test case for C Writer regression found in 256.bzip2
Brian Gaeke [Mon, 23 Jun 2003 19:59:17 +0000 (19:59 +0000)]
New test case for C Writer regression found in 256.bzip2

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

21 years agoAllow .llx testcases (i.e., those that contain explicit RUN: stmts.)
Brian Gaeke [Mon, 23 Jun 2003 19:58:50 +0000 (19:58 +0000)]
Allow .llx testcases (i.e., those that contain explicit RUN: stmts.)

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

21 years agoInclude <cmath> instead of <math.h>
Brian Gaeke [Mon, 23 Jun 2003 19:41:55 +0000 (19:41 +0000)]
Include <cmath> instead of <math.h>
Remove isnan; it's too unportable to handle cleanly at this point.

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

21 years agoAdd support for GCC 3.3
Chris Lattner [Mon, 23 Jun 2003 19:16:20 +0000 (19:16 +0000)]
Add support for GCC 3.3

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

21 years agoNew testcase for a GCC bug
Chris Lattner [Mon, 23 Jun 2003 18:06:21 +0000 (18:06 +0000)]
New testcase for a GCC bug

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

21 years agoavoid dividing by zero when dealing with zero sized types (like [0 x double])
Chris Lattner [Mon, 23 Jun 2003 17:36:49 +0000 (17:36 +0000)]
avoid dividing by zero when dealing with zero sized types (like [0 x double])

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

21 years agoAdd the padding needed for variable-size alloca's, which should work now.
Vikram S. Adve [Mon, 23 Jun 2003 02:13:57 +0000 (02:13 +0000)]
Add the padding needed for variable-size alloca's, which should work now.

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

21 years agoNew testcase narrowed down by Joel
Chris Lattner [Sun, 22 Jun 2003 21:40:38 +0000 (21:40 +0000)]
New testcase narrowed down by Joel

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

21 years agoFix bug: InstCombine/2003-06-22-ConstantExprCrash.ll
Chris Lattner [Sun, 22 Jun 2003 20:48:30 +0000 (20:48 +0000)]
Fix bug: InstCombine/2003-06-22-ConstantExprCrash.ll

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

21 years agoAdd paranoia checking
Chris Lattner [Sun, 22 Jun 2003 20:46:00 +0000 (20:46 +0000)]
Add paranoia checking

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

21 years agoNew testcase
Chris Lattner [Sun, 22 Jun 2003 20:45:39 +0000 (20:45 +0000)]
New testcase

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

21 years agoNew testcases
Chris Lattner [Sun, 22 Jun 2003 20:32:35 +0000 (20:32 +0000)]
New testcases

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