oota-llvm.git
22 years agoUse deterministic iterator for SchedGraphs. This is actually not
Vikram S. Adve [Sun, 24 Mar 2002 03:53:03 +0000 (03:53 +0000)]
Use deterministic iterator for SchedGraphs.  This is actually not
useful right now when we only do local scheduling.

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

22 years agoBug fix: nextToTry was not being initialized in one case.
Vikram S. Adve [Sun, 24 Mar 2002 03:46:15 +0000 (03:46 +0000)]
Bug fix: nextToTry was not being initialized in one case.

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

22 years agoAdd option to disable scheduling.
Vikram S. Adve [Sun, 24 Mar 2002 03:45:35 +0000 (03:45 +0000)]
Add option to disable scheduling.

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

22 years agoAdd option to disable scheduling.
Vikram S. Adve [Sun, 24 Mar 2002 03:44:55 +0000 (03:44 +0000)]
Add option to disable scheduling.
Destroy live-variable information after scheduling so it is
recomputed before later phases (e.g., reg. allocation).
Use deterministic iterator to enumerate sched graphs.

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

22 years agoMinor changes.
Vikram S. Adve [Sun, 24 Mar 2002 03:40:59 +0000 (03:40 +0000)]
Minor changes.

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

22 years agoRe-fix bug: Put back MachineCodeForInstruction::dropAllReferences.
Vikram S. Adve [Sun, 24 Mar 2002 03:40:11 +0000 (03:40 +0000)]
Re-fix bug: Put back MachineCodeForInstruction::dropAllReferences.

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

22 years agoFix padding for variables allocated on stack.
Vikram S. Adve [Sun, 24 Mar 2002 03:39:26 +0000 (03:39 +0000)]
Fix padding for variables allocated on stack.

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

22 years agoMajor overhaul to FoldGetElemPtr to handle mixed array and struct refs.
Vikram S. Adve [Sun, 24 Mar 2002 03:37:53 +0000 (03:37 +0000)]
Major overhaul to FoldGetElemPtr to handle mixed array and struct refs.

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

22 years agoUse deterministic iterator for treeRoots.
Vikram S. Adve [Sun, 24 Mar 2002 03:36:52 +0000 (03:36 +0000)]
Use deterministic iterator for treeRoots.

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

22 years agoBug re-fix: put back MachineCodeForInstruction::get(*I).dropAllReferences().
Vikram S. Adve [Sun, 24 Mar 2002 03:35:16 +0000 (03:35 +0000)]
Bug re-fix: put back MachineCodeForInstruction::get(*I).dropAllReferences().
Also re-enable instr. scheduling pass.

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

22 years agoChange latencies for Load, Store and Branch instructions.
Vikram S. Adve [Sun, 24 Mar 2002 03:33:53 +0000 (03:33 +0000)]
Change latencies for Load, Store and Branch instructions.

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

22 years agoMajor enhancements to how array and structure indices are handled.
Vikram S. Adve [Sun, 24 Mar 2002 03:33:02 +0000 (03:33 +0000)]
Major enhancements to how array and structure indices are handled.
Improve checking for constants in Multiply.
Simpler method to keep track of when a node is folded into its parent.
Several other bug fixes.

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

22 years agoChange treeRoots data structure to make enumeration deterministic.
Vikram S. Adve [Sun, 24 Mar 2002 03:25:17 +0000 (03:25 +0000)]
Change treeRoots data structure to make enumeration deterministic.
Also, add a flag to marked nodes that do not need code because they
have been folded into the user (parent in the BURG tree).

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

22 years agoChange treeRoots data structure to make enumeration deterministic.
Vikram S. Adve [Sun, 24 Mar 2002 03:24:00 +0000 (03:24 +0000)]
Change treeRoots data structure to make enumeration deterministic.

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

22 years agoMajor overhaul to support arbitrary mixed array and structure indices.
Vikram S. Adve [Sun, 24 Mar 2002 03:21:18 +0000 (03:21 +0000)]
Major overhaul to support arbitrary mixed array and structure indices.
Also moved to the Scalar/ directory and renamed to "MultiDim".

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

22 years agoRename pass to DecomposeMultiDimRefs.
Vikram S. Adve [Sun, 24 Mar 2002 03:19:54 +0000 (03:19 +0000)]
Rename pass to DecomposeMultiDimRefs.

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

22 years agoFix out-of-date name.
Vikram S. Adve [Sun, 24 Mar 2002 03:18:49 +0000 (03:18 +0000)]
Fix out-of-date name.

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

22 years agoRegression tests for DecomposeMultiDimRefs pass.
Vikram S. Adve [Sun, 24 Mar 2002 03:17:16 +0000 (03:17 +0000)]
Regression tests for DecomposeMultiDimRefs pass.

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

22 years agoRename Method to Function
Chris Lattner [Sat, 23 Mar 2002 22:51:58 +0000 (22:51 +0000)]
Rename Method to Function

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

22 years agoRemove extranous forward decl
Chris Lattner [Sat, 23 Mar 2002 22:48:21 +0000 (22:48 +0000)]
Remove extranous forward decl

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

22 years agoRemove unneccesary forward definitions
Chris Lattner [Sat, 23 Mar 2002 22:48:07 +0000 (22:48 +0000)]
Remove unneccesary forward definitions

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

22 years agoAdd transition header file
Chris Lattner [Sat, 23 Mar 2002 22:47:43 +0000 (22:47 +0000)]
Add transition header file

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

22 years agoUpdate documentation, rename Method to Function, move typedef to Value.h for now.
Chris Lattner [Sat, 23 Mar 2002 22:47:28 +0000 (22:47 +0000)]
Update documentation, rename Method to Function, move typedef to Value.h for now.

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

22 years agoChange Method to Function
Chris Lattner [Sat, 23 Mar 2002 22:46:51 +0000 (22:46 +0000)]
Change Method to Function

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

22 years agoAdd transition typedef to Function
Chris Lattner [Sat, 23 Mar 2002 21:59:53 +0000 (21:59 +0000)]
Add transition typedef to Function

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

22 years agoNew pass to convert Convert multi-dimensional
Vikram S. Adve [Sat, 23 Mar 2002 20:46:18 +0000 (20:46 +0000)]
New pass to convert Convert multi-dimensional
array references into 1-D references.

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

22 years agoMoved to Scalar/ directory.
Vikram S. Adve [Sat, 23 Mar 2002 20:44:37 +0000 (20:44 +0000)]
Moved to Scalar/ directory.

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

22 years agoNew pass to decompose multi-dimensional array references into
Vikram S. Adve [Sat, 23 Mar 2002 20:43:39 +0000 (20:43 +0000)]
New pass to decompose multi-dimensional array references into
a sequence of 1-D references, using a sequence of getElementPtrs.

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

22 years agoRemove compilation of __main because we now link -lgcc into programs
Chris Lattner [Fri, 22 Mar 2002 19:13:47 +0000 (19:13 +0000)]
Remove compilation of __main because we now link -lgcc into programs

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

22 years agoAdd an assertion that would hopefully catch a problem that was tripping
Chris Lattner [Fri, 22 Mar 2002 18:01:58 +0000 (18:01 +0000)]
Add an assertion that would hopefully catch a problem that was tripping
cameron up

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

22 years agoFix bug test/Regression/Transforms/LevelRaise/2002-03-21-MissedRaise3.ll
Chris Lattner [Thu, 21 Mar 2002 23:02:37 +0000 (23:02 +0000)]
Fix bug test/Regression/Transforms/LevelRaise/2002-03-21-MissedRaise3.ll

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

22 years agoNew testcase
Chris Lattner [Thu, 21 Mar 2002 23:00:48 +0000 (23:00 +0000)]
New testcase

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

22 years agoFix test/Regression/Transforms/LevelRaise/2002-03-21-MissedRaise2.ll
Chris Lattner [Thu, 21 Mar 2002 22:39:59 +0000 (22:39 +0000)]
Fix test/Regression/Transforms/LevelRaise/2002-03-21-MissedRaise2.ll

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

22 years agoNew testcase
Chris Lattner [Thu, 21 Mar 2002 22:39:43 +0000 (22:39 +0000)]
New testcase

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

22 years ago* AllocationInst ctor moved here from iMemory.h
Chris Lattner [Thu, 21 Mar 2002 22:37:48 +0000 (22:37 +0000)]
* AllocationInst ctor moved here from iMemory.h
* AllocationInst now always has an array size operand

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

22 years ago* Make AllocationInst ctor protected
Chris Lattner [Thu, 21 Mar 2002 22:37:01 +0000 (22:37 +0000)]
* Make AllocationInst ctor protected
* Move AllocationInst ctor to iMemory.cpp
* AllocationInst's always have one operand, even if it is a uint 1

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

22 years agoRerun test if opt gets changed
Chris Lattner [Thu, 21 Mar 2002 21:29:47 +0000 (21:29 +0000)]
Rerun test if opt gets changed

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

22 years agoRun all testcases
Chris Lattner [Thu, 21 Mar 2002 21:24:19 +0000 (21:24 +0000)]
Run all testcases

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

22 years agoBuild LevelRaise subdirectory
Chris Lattner [Thu, 21 Mar 2002 21:24:13 +0000 (21:24 +0000)]
Build LevelRaise subdirectory

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

22 years agoAdd a debugging option to gccas to cause it to not do level raise or anything
Chris Lattner [Thu, 21 Mar 2002 21:21:50 +0000 (21:21 +0000)]
Add a debugging option to gccas to cause it to not do level raise or anything
after it.

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

22 years agoFix test/Regression/Other/2002-03-21-LevelRaiseMiss.ll
Chris Lattner [Thu, 21 Mar 2002 21:21:13 +0000 (21:21 +0000)]
Fix test/Regression/Other/2002-03-21-LevelRaiseMiss.ll

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

22 years agoTestcase for a missed level raise opportunity
Chris Lattner [Thu, 21 Mar 2002 21:20:04 +0000 (21:20 +0000)]
Testcase for a missed level raise opportunity

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

22 years agoMake ConvertableToGEP handle cases where the user is indexing into the
Chris Lattner [Thu, 21 Mar 2002 06:27:20 +0000 (06:27 +0000)]
Make ConvertableToGEP handle cases where the user is indexing into the
first element of a structure type.  Before this would not be handled because
getStructOffset would either stop immediately (because StopEarly was true
and Offset = 0), or blast past the level we wanted.

Now ConvertableToGEP steps down through the type one level at a time, checking
the Offset and Scale conditions at each step

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

22 years agoImplement the new InsertInstBeforeInst function
Chris Lattner [Thu, 21 Mar 2002 06:24:00 +0000 (06:24 +0000)]
Implement the new InsertInstBeforeInst function

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

22 years agoFix the: test/Regression/Other/2002-03-20-LevelRaiseCrash.ll bug. It turned
Chris Lattner [Thu, 21 Mar 2002 06:22:23 +0000 (06:22 +0000)]
Fix the: test/Regression/Other/2002-03-20-LevelRaiseCrash.ll bug.  It turned
out that almost always the result of the add was the same as the GEP that
would be generated.  In this case, however, it wasn't, so bad things happened.

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

22 years agoFix bug in testcase
Chris Lattner [Thu, 21 Mar 2002 06:19:43 +0000 (06:19 +0000)]
Fix bug in testcase

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

22 years agoDeclare the new InsertInstBeforeInst function
Chris Lattner [Thu, 21 Mar 2002 06:15:53 +0000 (06:15 +0000)]
Declare the new InsertInstBeforeInst function

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

22 years agoRemove a misguided API extension
Chris Lattner [Thu, 21 Mar 2002 05:46:43 +0000 (05:46 +0000)]
Remove a misguided API extension

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

22 years agoNew testcase for YALRB (yet another level raise bug)
Chris Lattner [Thu, 21 Mar 2002 05:39:20 +0000 (05:39 +0000)]
New testcase for YALRB (yet another level raise bug)

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

22 years agoAdd an assertion to catch a misuse of replaceAllUsesWith
Chris Lattner [Thu, 21 Mar 2002 05:38:15 +0000 (05:38 +0000)]
Add an assertion to catch a misuse of replaceAllUsesWith

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

22 years agoCheckin testcase that was just sitting in my tree. Looks like backreferences
Chris Lattner [Thu, 21 Mar 2002 05:35:11 +0000 (05:35 +0000)]
Checkin testcase that was just sitting in my tree.  Looks like backreferences
have some problem in the parser, oh joy.

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

22 years ago1. Fix bug test/Regression/Other/2002-03-20-LevelRaiseBadCodegen.ll
Chris Lattner [Thu, 21 Mar 2002 03:04:38 +0000 (03:04 +0000)]
1. Fix bug test/Regression/Other/2002-03-20-LevelRaiseBadCodegen.ll
2. Allow negative scales in ConvertableToGEP, so that this loop from
   alloc_tree in the Olden health benchmark is correctly raised:

       for (i = 3; i >= 0; i--)
         fval[i] = alloc_tree(level - 1, label*4 + i + 1, new);

   Stepping through the array backwards caused a negative scale.

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

22 years agoNamespace qualify debugging code
Chris Lattner [Thu, 21 Mar 2002 03:02:07 +0000 (03:02 +0000)]
Namespace qualify debugging code

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

22 years agoNew testcase
Chris Lattner [Thu, 21 Mar 2002 03:01:14 +0000 (03:01 +0000)]
New testcase

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

22 years agoAllow implementation of all HANDLE_*_INST macros at once by defining HANDLE_INST
Chris Lattner [Tue, 19 Mar 2002 05:51:18 +0000 (05:51 +0000)]
Allow implementation of all HANDLE_*_INST macros at once by defining HANDLE_INST

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

22 years agoNew pass to convert Convert multi-dimensional
Vikram S. Adve [Tue, 19 Mar 2002 02:10:34 +0000 (02:10 +0000)]
New pass to convert Convert multi-dimensional
array references into 1-D references.

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

22 years agoBig bug fix: killed uses were being inserted instead of erased!
Vikram S. Adve [Tue, 19 Mar 2002 00:59:08 +0000 (00:59 +0000)]
Big bug fix: killed uses were being inserted instead of erased!
Also added a set of debug options.

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

22 years agoInitial checkin of InstVisitor class
Chris Lattner [Mon, 18 Mar 2002 19:07:42 +0000 (19:07 +0000)]
Initial checkin of InstVisitor class

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

22 years agoAdd isa,cast,dyncast support for AllocationInst.
Chris Lattner [Mon, 18 Mar 2002 05:00:51 +0000 (05:00 +0000)]
Add isa,cast,dyncast support for AllocationInst.

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

22 years agoinclude Makefile.tests.
Vikram S. Adve [Mon, 18 Mar 2002 04:05:26 +0000 (04:05 +0000)]
include Makefile.tests.

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

22 years agoNeed rule for runtime.o. This is just temporary to provide
Vikram S. Adve [Mon, 18 Mar 2002 04:04:25 +0000 (04:04 +0000)]
Need rule for runtime.o.  This is just temporary to provide
ll__main so that llc output can link.

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

22 years agoFix libraries.
Vikram S. Adve [Mon, 18 Mar 2002 03:53:22 +0000 (03:53 +0000)]
Fix libraries.

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

22 years agoMinor changes.
Vikram S. Adve [Mon, 18 Mar 2002 03:52:31 +0000 (03:52 +0000)]
Minor changes.

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

22 years agoFixed several problems with handling arguments to Phis.
Vikram S. Adve [Mon, 18 Mar 2002 03:47:26 +0000 (03:47 +0000)]
Fixed several problems with handling arguments to Phis.

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

22 years agoBig bug fix: killed uses were being inserted instead of erased!
Vikram S. Adve [Mon, 18 Mar 2002 03:45:41 +0000 (03:45 +0000)]
Big bug fix: killed uses were being inserted instead of erased!
Also added a set of debug options.

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

22 years agoJust a comment.
Vikram S. Adve [Mon, 18 Mar 2002 03:40:25 +0000 (03:40 +0000)]
Just a comment.

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

22 years agoNew pass to decompose multi-dimensional array references into
Vikram S. Adve [Mon, 18 Mar 2002 03:39:09 +0000 (03:39 +0000)]
New pass to decompose multi-dimensional array references into
a sequence of 1-D references, using a sequence of getElementPtrs.

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

22 years agoBig bug fix: getUsableUniRegAtMI needed to return values in arguments
Vikram S. Adve [Mon, 18 Mar 2002 03:37:19 +0000 (03:37 +0000)]
Big bug fix: getUsableUniRegAtMI needed to return values in arguments
but did not pass the arguments by reference!

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

22 years agoAdded function computeOffsetforLocalVar to check how big the
Vikram S. Adve [Mon, 18 Mar 2002 03:36:30 +0000 (03:36 +0000)]
Added function computeOffsetforLocalVar to check how big the
offset-from-FP will be before allocating space for a local variable.

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

22 years agoBug fix in setting CC register.
Vikram S. Adve [Mon, 18 Mar 2002 03:35:24 +0000 (03:35 +0000)]
Bug fix in setting CC register.
Also use distinct names for the three types of SetMachineOperand
to avoid painful overloading problems and errors.

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

22 years agoConstants are now added to the constant pool only when a load
Vikram S. Adve [Mon, 18 Mar 2002 03:33:43 +0000 (03:33 +0000)]
Constants are now added to the constant pool only when a load
instruction is actually generated for them.
Rename the different versions of SetMachineOperand.

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

22 years agoUse vector for machine instructions returned by GetInstructionsByRule.
Vikram S. Adve [Mon, 18 Mar 2002 03:31:54 +0000 (03:31 +0000)]
Use vector for machine instructions returned by GetInstructionsByRule.
Fix constants in instructions generated for Phi elimination.

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

22 years agoBig bug fix: getUsableUniRegAtMI needed to return values in arguments
Vikram S. Adve [Mon, 18 Mar 2002 03:26:48 +0000 (03:26 +0000)]
Big bug fix: getUsableUniRegAtMI needed to return values in arguments
but did not pass the arguments by reference!
Also added a function to get a register class by ID.

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

22 years agoAdded function computeOffsetforLocalVar to check how big the
Vikram S. Adve [Mon, 18 Mar 2002 03:23:29 +0000 (03:23 +0000)]
Added function computeOffsetforLocalVar to check how big the
offset-from-FP will be before allocating space for a local variable.

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

22 years agoUse vector for machine instructions in GetInstructionsByRule.
Vikram S. Adve [Mon, 18 Mar 2002 03:20:46 +0000 (03:20 +0000)]
Use vector for machine instructions in GetInstructionsByRule.

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

22 years agoAdded machine-independent value for INVALID_MACHINE_OPCODE.
Vikram S. Adve [Mon, 18 Mar 2002 03:19:38 +0000 (03:19 +0000)]
Added machine-independent value for INVALID_MACHINE_OPCODE.
Just cosmetic changes otherwise.

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

22 years agoAdd function getRegClassIDOfType.
Vikram S. Adve [Mon, 18 Mar 2002 03:18:28 +0000 (03:18 +0000)]
Add function getRegClassIDOfType.
getRegClassIDOfValue is now just a wrapper around this.

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

22 years agoAdd support for code generation for array references.
Vikram S. Adve [Mon, 18 Mar 2002 03:15:35 +0000 (03:15 +0000)]
Add support for code generation for array references.
Also, use distinct names for the three types of SetMachineOperand to
avoid painful overloading problems and errors.
Bug fix in converting-int-to-float.  Other minor stuff.

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

22 years agoBug fixes for not using unified reg. numbers, and for using the
Vikram S. Adve [Mon, 18 Mar 2002 03:12:16 +0000 (03:12 +0000)]
Bug fixes for not using unified reg. numbers, and for using the
wrong register class for saving CC registers.
Also, use distinct names for the three types of SetMachineOperand.

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

22 years agoBug fix in setting CC register.
Vikram S. Adve [Mon, 18 Mar 2002 03:10:17 +0000 (03:10 +0000)]
Bug fix in setting CC register.
Also use distinct names for the three types of SetMachineOperand
to avoid painful overloading problems and errors.

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

22 years agoUse distinct names for the three types of SetMachineOperand to
Vikram S. Adve [Mon, 18 Mar 2002 03:09:15 +0000 (03:09 +0000)]
Use distinct names for the three types of SetMachineOperand to
avoid painful overloading problems and errors.

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

22 years agoMinor fixes.
Vikram S. Adve [Mon, 18 Mar 2002 03:08:07 +0000 (03:08 +0000)]
Minor fixes.

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

22 years agoHandling of global names was severely broken when converting to 2 passes.
Vikram S. Adve [Mon, 18 Mar 2002 03:07:26 +0000 (03:07 +0000)]
Handling of global names was severely broken when converting to 2 passes.
Different labels were generated for the same name in different passes.
Use an annotation to hold a fixed table of names.

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

22 years agoSeveral sundry bug fixes.
Vikram S. Adve [Mon, 18 Mar 2002 03:02:42 +0000 (03:02 +0000)]
Several sundry bug fixes.

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

22 years agoConvert the top line of the header from .cpp style to .h style.
Chris Lattner [Sun, 17 Mar 2002 21:16:22 +0000 (21:16 +0000)]
Convert the top line of the header from .cpp style to .h style.

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

22 years agoMake an assertion provide a more helpful error message
Chris Lattner [Sun, 17 Mar 2002 21:16:01 +0000 (21:16 +0000)]
Make an assertion provide a more helpful error message

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

22 years agoRegression tests for live-variable analysis on machine code
Vikram S. Adve [Sat, 16 Mar 2002 21:42:33 +0000 (21:42 +0000)]
Regression tests for live-variable analysis on machine code
generated by llc.

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

22 years agoRemove code designed to compensate for a bug in GCC. The bug has since
Chris Lattner [Fri, 15 Mar 2002 20:35:21 +0000 (20:35 +0000)]
Remove code designed to compensate for a bug in GCC.  The bug has since
been fixed.

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

22 years agoCheckin new test for problem anand ran into
Chris Lattner [Fri, 15 Mar 2002 20:25:09 +0000 (20:25 +0000)]
Checkin new test for problem anand ran into

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

22 years agoCleanup error message output a bit
Chris Lattner [Fri, 15 Mar 2002 20:21:29 +0000 (20:21 +0000)]
Cleanup error message output a bit

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

22 years agoExpose dead instruction elimination pass
Chris Lattner [Thu, 14 Mar 2002 22:36:15 +0000 (22:36 +0000)]
Expose dead instruction elimination pass

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

22 years agoFix test/Regression/Other/2002-03-14-ValueToLarge.ll. Note that this
Chris Lattner [Thu, 14 Mar 2002 22:35:50 +0000 (22:35 +0000)]
Fix test/Regression/Other/2002-03-14-ValueToLarge.ll.  Note that this
fix could be better, but we don't have the infrastructure to find out what
size types are yet.

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

22 years agoTestcase for bug
Chris Lattner [Thu, 14 Mar 2002 22:30:39 +0000 (22:30 +0000)]
Testcase for bug

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

22 years agoNew testcase
Chris Lattner [Thu, 14 Mar 2002 20:16:23 +0000 (20:16 +0000)]
New testcase

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

22 years agoNew test case for long standing bug that was fixed
Chris Lattner [Thu, 14 Mar 2002 19:40:44 +0000 (19:40 +0000)]
New test case for long standing bug that was fixed

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

22 years agoForgot to check this in a long time ago
Chris Lattner [Thu, 14 Mar 2002 19:31:32 +0000 (19:31 +0000)]
Forgot to check this in a long time ago

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

22 years agoNew testcase
Chris Lattner [Thu, 14 Mar 2002 19:27:43 +0000 (19:27 +0000)]
New testcase

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

22 years agoAdd a check to ensure that only PHI nodes are self referential. Code
Chris Lattner [Thu, 14 Mar 2002 16:53:48 +0000 (16:53 +0000)]
Add a check to ensure that only PHI nodes are self referential.  Code
input to instruction combination was broken, which caused it to explode.

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

22 years agoFix bug: test/Regression/Other/2002-03-14-LevelRaiseHang.ll
Chris Lattner [Thu, 14 Mar 2002 16:37:04 +0000 (16:37 +0000)]
Fix bug: test/Regression/Other/2002-03-14-LevelRaiseHang.ll

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

22 years agoNew testcase for bugfx
Chris Lattner [Thu, 14 Mar 2002 16:35:50 +0000 (16:35 +0000)]
New testcase for bugfx

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