oota-llvm.git
22 years agoFinish enumating code
Chris Lattner [Sun, 17 Nov 2002 22:33:54 +0000 (22:33 +0000)]
Finish enumating code

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

22 years agoFix minor detail
Chris Lattner [Sun, 17 Nov 2002 22:33:26 +0000 (22:33 +0000)]
Fix minor detail

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

22 years agoAdd more numbers
Chris Lattner [Sun, 17 Nov 2002 22:19:10 +0000 (22:19 +0000)]
Add more numbers

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

22 years agoAdd hack to only consider indirect calls indirect if they do more than cast
Chris Lattner [Sun, 17 Nov 2002 22:17:12 +0000 (22:17 +0000)]
Add hack to only consider indirect calls indirect if they do more than cast
their source function

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

22 years agoAdd MaxSCC statistics
Chris Lattner [Sun, 17 Nov 2002 22:16:28 +0000 (22:16 +0000)]
Add MaxSCC statistics

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

22 years agoCount CallInsts correctly, remove unneccesary initializers
Chris Lattner [Sun, 17 Nov 2002 22:15:40 +0000 (22:15 +0000)]
Count CallInsts correctly, remove unneccesary initializers
S: ----------------------------------------------------------------------

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

22 years agoRemove unused methods
Chris Lattner [Sun, 17 Nov 2002 22:14:22 +0000 (22:14 +0000)]
Remove unused methods

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

22 years agoRemove only uses of markDef/markDefAndUse methods
Chris Lattner [Sun, 17 Nov 2002 22:14:08 +0000 (22:14 +0000)]
Remove only uses of markDef/markDefAndUse methods

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

22 years agoFix Mul/Div clobbers
Chris Lattner [Sun, 17 Nov 2002 21:56:38 +0000 (21:56 +0000)]
Fix Mul/Div clobbers

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

22 years agoConvert to use an enum to access def/use/use&def information. These make
Chris Lattner [Sun, 17 Nov 2002 21:56:10 +0000 (21:56 +0000)]
Convert to use an enum to access def/use/use&def information.  These make
reading code much easier than just seeing "true, false" especially when
default parameters default one but not both arguments.

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

22 years agoFix a few typos, implement load/store
Chris Lattner [Sun, 17 Nov 2002 21:11:55 +0000 (21:11 +0000)]
Fix a few typos, implement load/store

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

22 years agoNew testcase for loads and stores
Chris Lattner [Sun, 17 Nov 2002 21:06:13 +0000 (21:06 +0000)]
New testcase for loads and stores

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

22 years agoAdd functions to buld X86 specific constructs
Chris Lattner [Sun, 17 Nov 2002 21:03:35 +0000 (21:03 +0000)]
Add functions to buld X86 specific constructs

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

22 years agoReturn const refefrences to enable default construction
Chris Lattner [Sun, 17 Nov 2002 21:02:42 +0000 (21:02 +0000)]
Return const refefrences to enable default construction

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

22 years agoAdd information about memory index representation
Chris Lattner [Sun, 17 Nov 2002 20:33:26 +0000 (20:33 +0000)]
Add information about memory index representation

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

22 years agoAdd load/store instructions
Chris Lattner [Sun, 17 Nov 2002 20:33:12 +0000 (20:33 +0000)]
Add load/store instructions

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

22 years agoSwitch visitRet to use getClass()
Chris Lattner [Sun, 17 Nov 2002 20:07:45 +0000 (20:07 +0000)]
Switch visitRet to use getClass()

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

22 years agoUpdates
Nick Hildenbrandt [Fri, 15 Nov 2002 21:18:22 +0000 (21:18 +0000)]
Updates

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

22 years agoFix warning
Chris Lattner [Fri, 15 Nov 2002 18:04:16 +0000 (18:04 +0000)]
Fix warning

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

22 years agoinclude/llvm/CodeGen/MachineInstrBuilder.h: Add addClobber() inline
Brian Gaeke [Thu, 14 Nov 2002 22:32:30 +0000 (22:32 +0000)]
include/llvm/CodeGen/MachineInstrBuilder.h: Add addClobber() inline
 convenience method.  Fix typo in comment.
lib/Target/X86/InstSelectSimple.cpp: Explicitly specify some implicit uses.
 Use MOVZX/MOVSX instead of MOV instructions with sign extend instructions.
 Take out LEAVE instructions.
 32-bit IDIV and DIV use CDQ, not CWQ (CWQ is a typo).
 Fix typo in comment and remove some FIXME comments.
lib/Target/X86/Printer.cpp: Include X86InstrInfo.h and llvm/Function.h.
 Add some simple code to Printer::runOnFunction to iterate over
  MachineBasicBlocks and call X86InstrInfo::print().
lib/Target/X86/X86InstrInfo.def: Make some more instructions with
 implicit defs "Void".  Add more sign/zero extending "move" insns
 (movsx, movzx).
lib/Target/X86/X86RegisterInfo.def: Add EFLAGS as a register.

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

22 years agoGives the count for various instructions.
Dinakar Dhurjati [Wed, 13 Nov 2002 18:22:13 +0000 (18:22 +0000)]
Gives the count for various instructions.

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

22 years agoPass to compute various statisics related to DSGraphs.
Vikram S. Adve [Wed, 13 Nov 2002 15:41:00 +0000 (15:41 +0000)]
Pass to compute various statisics related to DSGraphs.
For now, this just computes the #indirect call sites and
the avg. #callees per indirect call site (actually it prints
both totals and the average is their ratio).

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

22 years agoFix bug: 2002-11-13-PointerFunction.ll
Chris Lattner [Wed, 13 Nov 2002 06:54:20 +0000 (06:54 +0000)]
Fix bug: 2002-11-13-PointerFunction.ll
This should fix codegen on vortex to work much better

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

22 years agoNew testcase
Chris Lattner [Wed, 13 Nov 2002 06:54:00 +0000 (06:54 +0000)]
New testcase

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

22 years agoAdd new numbers
Chris Lattner [Tue, 12 Nov 2002 16:06:51 +0000 (16:06 +0000)]
Add new numbers

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

22 years agoInline graphs from outside the SCC into the SCC before SCC resolution starts
Chris Lattner [Tue, 12 Nov 2002 15:58:08 +0000 (15:58 +0000)]
Inline graphs from outside the SCC into the SCC before SCC resolution starts

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

22 years agoRemove dead method, add new method
Chris Lattner [Tue, 12 Nov 2002 15:57:28 +0000 (15:57 +0000)]
Remove dead method, add new method

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

22 years agoFix two bugs:
Chris Lattner [Tue, 12 Nov 2002 07:20:45 +0000 (07:20 +0000)]
Fix two bugs:
 * The globals vector was getting broken and unsorted, this caused vortex
   to get badly pessimized
 * Node offset handling was being handled really poorly, and in particular
   we were not merging types with offsets right.  This causes several graphs
   to be non-merged.

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

22 years agoAdd new numbers
Chris Lattner [Tue, 12 Nov 2002 06:53:43 +0000 (06:53 +0000)]
Add new numbers

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

22 years agoFix bug
Chris Lattner [Mon, 11 Nov 2002 22:23:56 +0000 (22:23 +0000)]
Fix bug

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

22 years agoHandle a mismatch between # function args and call site args
Chris Lattner [Mon, 11 Nov 2002 21:36:05 +0000 (21:36 +0000)]
Handle a mismatch between # function args and call site args

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

22 years agoElimiante calls to a node with nothing in it.
Chris Lattner [Mon, 11 Nov 2002 21:35:38 +0000 (21:35 +0000)]
Elimiante calls to a node with nothing in it.

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

22 years agoComplete rewrite of BU code to use Tarjan's SCC finding algorithm to drive
Chris Lattner [Mon, 11 Nov 2002 21:35:13 +0000 (21:35 +0000)]
Complete rewrite of BU code to use Tarjan's SCC finding algorithm to drive
the algorithm instead of hand coded depth first iteration

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

22 years agoAlmost complete rewrite of BU closure code
Chris Lattner [Mon, 11 Nov 2002 21:34:34 +0000 (21:34 +0000)]
Almost complete rewrite of BU closure code

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

22 years agoMore numbers
Chris Lattner [Mon, 11 Nov 2002 20:48:45 +0000 (20:48 +0000)]
More numbers

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

22 years agoInstSelectSimple.cpp: (visitReturnInst) Add return instructions with return
Brian Gaeke [Mon, 11 Nov 2002 19:37:09 +0000 (19:37 +0000)]
InstSelectSimple.cpp: (visitReturnInst) Add return instructions with return
 values.
X86InstrInfo.def: add LEAVE instruction.

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

22 years agoMark stuff reachable by _AUX_ calls as incomplete in the BU graph
Chris Lattner [Mon, 11 Nov 2002 03:36:55 +0000 (03:36 +0000)]
Mark stuff reachable by _AUX_ calls as incomplete in the BU graph

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

22 years agoFix infinite loop in the BU algorithm. Unfortunately this dies a serious
Chris Lattner [Mon, 11 Nov 2002 00:01:34 +0000 (00:01 +0000)]
Fix infinite loop in the BU algorithm.  Unfortunately this dies a serious
death when handling moderately sized SCC's, but what can you do

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

22 years agoPrint the right call set size
Chris Lattner [Mon, 11 Nov 2002 00:01:02 +0000 (00:01 +0000)]
Print the right call set size

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

22 years agoUse call site mergeWith method to simplify code
Chris Lattner [Mon, 11 Nov 2002 00:00:46 +0000 (00:00 +0000)]
Use call site mergeWith method to simplify code

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

22 years agoadd method
Chris Lattner [Sun, 10 Nov 2002 23:47:02 +0000 (23:47 +0000)]
add method

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

22 years agoAdd code to be able to merge two call sites
Chris Lattner [Sun, 10 Nov 2002 23:46:51 +0000 (23:46 +0000)]
Add code to be able to merge two call sites

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

22 years agoAdd tarj_end() method
Chris Lattner [Sun, 10 Nov 2002 23:46:31 +0000 (23:46 +0000)]
Add tarj_end() method

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

22 years agoFix a bug that could trigger when varargs call sites had non-matching number of arguments
Chris Lattner [Sun, 10 Nov 2002 07:46:08 +0000 (07:46 +0000)]
Fix a bug that could trigger when varargs call sites had non-matching number of arguments

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

22 years agoAdd more info
Chris Lattner [Sun, 10 Nov 2002 07:31:38 +0000 (07:31 +0000)]
Add more info

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

22 years ago* Dramatically rework liveness evaluation.
Chris Lattner [Sun, 10 Nov 2002 06:59:55 +0000 (06:59 +0000)]
* Dramatically rework liveness evaluation.
* Implement the first step of the Globals graph: Deleting nodes from function
  graphs.  In practice, these nodes need to be moved to the globals graph, but
  this will be taken care of later.  Note that the graphs computed right now are
  not strictly correct!

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

22 years agoAdd more numbers
Chris Lattner [Sun, 10 Nov 2002 06:55:29 +0000 (06:55 +0000)]
Add more numbers

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

22 years agoAdd a timer to evaluate bytecode load time and space requirements
Chris Lattner [Sun, 10 Nov 2002 06:55:02 +0000 (06:55 +0000)]
Add a timer to evaluate bytecode load time and space requirements

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

22 years agoHonor the shouldPrintAuxCalls flag
Chris Lattner [Sun, 10 Nov 2002 06:53:59 +0000 (06:53 +0000)]
Honor the shouldPrintAuxCalls flag

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

22 years agoInitialize PrintAuxCalls member
Chris Lattner [Sun, 10 Nov 2002 06:53:38 +0000 (06:53 +0000)]
Initialize PrintAuxCalls member

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

22 years agoAdd hasGraph() methods to all of the passes for the printer
Chris Lattner [Sun, 10 Nov 2002 06:53:19 +0000 (06:53 +0000)]
Add hasGraph() methods to all of the passes for the printer

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

22 years ago* Bottom-Up graphs print the Aux call vector
Chris Lattner [Sun, 10 Nov 2002 06:52:47 +0000 (06:52 +0000)]
* Bottom-Up graphs print the Aux call vector
* Significantly improve DEBUG output
* Aggressively fold calls together if we inlined a graph that provides
  call nodes.
* Add a bailout if the current graph has over 200 call nodes in it, this is
  a really whacky case that should never happen.

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

22 years agoImplement swapping
Chris Lattner [Sun, 10 Nov 2002 06:48:24 +0000 (06:48 +0000)]
Implement swapping

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

22 years agoImplement support for swapping. Callsites now sort by callee
Chris Lattner [Sun, 10 Nov 2002 06:48:11 +0000 (06:48 +0000)]
Implement support for swapping.  Callsites now sort by callee

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

22 years agoAdd capability to set a preference of what call vector is printed to dot files
Chris Lattner [Sun, 10 Nov 2002 06:47:35 +0000 (06:47 +0000)]
Add capability to set a preference of what call vector is printed to dot files

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

22 years agoFix a problem where bad graphs could be generated
Chris Lattner [Sun, 10 Nov 2002 06:47:03 +0000 (06:47 +0000)]
Fix a problem where bad graphs could be generated

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

22 years agoRun local, bu, & td analyses
Chris Lattner [Sun, 10 Nov 2002 06:41:19 +0000 (06:41 +0000)]
Run local, bu, & td analyses

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

22 years agoAdd new test that causes infinite recursion in bu pass
Chris Lattner [Sun, 10 Nov 2002 06:41:07 +0000 (06:41 +0000)]
Add new test that causes infinite recursion in bu pass

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

22 years agoFix testcase: FunctionResolve/2002-11-09-ExternFn.ll
Chris Lattner [Sun, 10 Nov 2002 03:36:55 +0000 (03:36 +0000)]
Fix testcase: FunctionResolve/2002-11-09-ExternFn.ll

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

22 years agoNew testcase
Chris Lattner [Sun, 10 Nov 2002 03:35:43 +0000 (03:35 +0000)]
New testcase

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

22 years agoeliminate the ability to remove global nodes from deadNodeElminate... for now.
Chris Lattner [Sat, 9 Nov 2002 22:07:02 +0000 (22:07 +0000)]
eliminate the ability to remove global nodes from deadNodeElminate... for now.
This slows stuff down a bit, but it should get much better before it gets any
worse.

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

22 years agoRemove obsolete code
Chris Lattner [Sat, 9 Nov 2002 21:41:44 +0000 (21:41 +0000)]
Remove obsolete code

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

22 years agoFix logic
Chris Lattner [Sat, 9 Nov 2002 21:40:58 +0000 (21:40 +0000)]
Fix logic

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

22 years agoAdd globals graphs to all three passes
Chris Lattner [Sat, 9 Nov 2002 21:12:07 +0000 (21:12 +0000)]
Add globals graphs to all three passes

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

22 years agoMove maskNodeTypes from cpp file
Chris Lattner [Sat, 9 Nov 2002 21:02:30 +0000 (21:02 +0000)]
Move maskNodeTypes from cpp file

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

22 years agoMove maskNodeTypes to header file
Chris Lattner [Sat, 9 Nov 2002 21:02:26 +0000 (21:02 +0000)]
Move maskNodeTypes to header file

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

22 years agoClean up DSGraph::removeDeadNodes interface
Chris Lattner [Sat, 9 Nov 2002 21:00:49 +0000 (21:00 +0000)]
Clean up DSGraph::removeDeadNodes interface

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

22 years agoMake removeTriviallyDeadNodes a private interface of DSGraph
Chris Lattner [Sat, 9 Nov 2002 20:55:24 +0000 (20:55 +0000)]
Make removeTriviallyDeadNodes a private interface of DSGraph

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

22 years agoMake removeTriviallyDeadNodes a private interface
Chris Lattner [Sat, 9 Nov 2002 20:55:04 +0000 (20:55 +0000)]
Make removeTriviallyDeadNodes a private interface

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

22 years agoDon't put constants into the scalar map!
Chris Lattner [Sat, 9 Nov 2002 20:14:03 +0000 (20:14 +0000)]
Don't put constants into the scalar map!

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

22 years agoAdd initial support for a globals graph
Chris Lattner [Sat, 9 Nov 2002 20:01:01 +0000 (20:01 +0000)]
Add initial support for a globals graph

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

22 years agoTighten up array handling
Chris Lattner [Sat, 9 Nov 2002 19:25:27 +0000 (19:25 +0000)]
Tighten up array handling

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

22 years ago#include Datastructure.h first
Chris Lattner [Sat, 9 Nov 2002 19:25:10 +0000 (19:25 +0000)]
#include Datastructure.h first

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

22 years agoRemove unneccesary #include
Chris Lattner [Sat, 9 Nov 2002 19:24:41 +0000 (19:24 +0000)]
Remove unneccesary #include

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

22 years agoRemove GlobalDSGraph delcaration
Chris Lattner [Sat, 9 Nov 2002 19:21:56 +0000 (19:21 +0000)]
Remove GlobalDSGraph delcaration

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

22 years agoAdd highlighting of changes fields
Chris Lattner [Sat, 9 Nov 2002 19:15:58 +0000 (19:15 +0000)]
Add highlighting of changes fields

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

22 years agoAllow tests to be run with release tools when ENABLE_OPTIMIZED=1
Chris Lattner [Sat, 9 Nov 2002 00:50:02 +0000 (00:50 +0000)]
Allow tests to be run with release tools when ENABLE_OPTIMIZED=1

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

22 years agoFix warning
Chris Lattner [Sat, 9 Nov 2002 00:49:43 +0000 (00:49 +0000)]
Fix warning

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

22 years agoFix warning & release build
Chris Lattner [Sat, 9 Nov 2002 00:49:05 +0000 (00:49 +0000)]
Fix warning & release build

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

22 years agoFix release build
Chris Lattner [Sat, 9 Nov 2002 00:48:52 +0000 (00:48 +0000)]
Fix release build

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

22 years agoAdd new methods
Chris Lattner [Fri, 8 Nov 2002 23:22:48 +0000 (23:22 +0000)]
Add new methods

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

22 years agoFix spelling error
Chris Lattner [Fri, 8 Nov 2002 23:18:37 +0000 (23:18 +0000)]
Fix spelling error

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

22 years agoAdd numbers for array folding
Chris Lattner [Fri, 8 Nov 2002 22:51:10 +0000 (22:51 +0000)]
Add numbers for array folding

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

22 years agoFold arrays down to a single element. This causes huge wins on some benchmarks
Chris Lattner [Fri, 8 Nov 2002 22:49:57 +0000 (22:49 +0000)]
Fold arrays down to a single element.  This causes huge wins on some benchmarks
for example: 197.parser (64M->14M), 164.gzip (14M->2.7M).  The actual graphs
represented should not change at all.

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

22 years agoAdd a bunch more numbers
Chris Lattner [Fri, 8 Nov 2002 22:29:30 +0000 (22:29 +0000)]
Add a bunch more numbers

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

22 years agoAdd another option to cloneGraph
Chris Lattner [Fri, 8 Nov 2002 22:28:55 +0000 (22:28 +0000)]
Add another option to cloneGraph

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

22 years agoONLY merge in the aux call sites, this causes a HUGE speedup
Chris Lattner [Fri, 8 Nov 2002 22:27:25 +0000 (22:27 +0000)]
ONLY merge in the aux call sites, this causes a HUGE speedup

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

22 years agoAllow specification of whether the call sites should be copied, AND whether
Chris Lattner [Fri, 8 Nov 2002 22:27:09 +0000 (22:27 +0000)]
Allow specification of whether the call sites should be copied, AND whether
the aux call sites should be copied

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

22 years agoReenable 'quick exit' case
Chris Lattner [Fri, 8 Nov 2002 22:26:43 +0000 (22:26 +0000)]
Reenable 'quick exit' case

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

22 years agoReduce amount of work needed to compute ip/modref
Chris Lattner [Fri, 8 Nov 2002 22:17:01 +0000 (22:17 +0000)]
Reduce amount of work needed to compute ip/modref

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

22 years agofix path
Chris Lattner [Fri, 8 Nov 2002 21:29:22 +0000 (21:29 +0000)]
fix path

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

22 years agoReimplement TD pass completely it now works
Chris Lattner [Fri, 8 Nov 2002 21:28:37 +0000 (21:28 +0000)]
Reimplement TD pass completely it now works

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

22 years agoCannot modify original call sites vector
Chris Lattner [Fri, 8 Nov 2002 21:27:37 +0000 (21:27 +0000)]
Cannot modify original call sites vector

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

22 years ago- Add a bunch of checking to make sure that dead nodes are not used after they
Chris Lattner [Fri, 8 Nov 2002 21:27:12 +0000 (21:27 +0000)]
- Add a bunch of checking to make sure that dead nodes are not used after they
  are marked DEAD.  This helped track down some bugs
- Fix a bunch of bugs where we were doing work on nodes after they became dead
- Add support for aux function call sites
- Add support for not cloning call sites

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

22 years agoRemove gunk used by broken TD pass
Chris Lattner [Fri, 8 Nov 2002 21:25:24 +0000 (21:25 +0000)]
Remove gunk used by broken TD pass

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

22 years ago- Add support for an "auxillary" call site list
Chris Lattner [Fri, 8 Nov 2002 21:24:51 +0000 (21:24 +0000)]
- Add support for an "auxillary" call site list
- Original call sites are now never modified after construction by the local
  pass.
- DSGraph::cloneInto can now optionally not clone the call sites
- BUDataStructures no longer has a ton of book-keeping info for a broken
  implementation of the TD data structures

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

22 years agoUse the new getMainFunction() method to efficiently locate main
Chris Lattner [Fri, 8 Nov 2002 20:34:21 +0000 (20:34 +0000)]
Use the new getMainFunction() method to efficiently locate main

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

22 years agoAdd a method "getMainFunction()" that efficiently locates 'main' in a module
Chris Lattner [Fri, 8 Nov 2002 20:34:02 +0000 (20:34 +0000)]
Add a method "getMainFunction()" that efficiently locates 'main' in a module

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

22 years agoFix IPModRef to use new DS interface
Chris Lattner [Fri, 8 Nov 2002 19:13:14 +0000 (19:13 +0000)]
Fix IPModRef to use new DS interface

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

22 years agoImplement feof
Chris Lattner [Fri, 8 Nov 2002 19:10:26 +0000 (19:10 +0000)]
Implement feof

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