Chris Lattner [Tue, 22 Jan 2002 03:30:06 +0000 (03:30 +0000)]
Don't insert a useless cast
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1527
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Jan 2002 02:28:50 +0000 (02:28 +0000)]
Try again, now it works right
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1526
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Jan 2002 01:04:08 +0000 (01:04 +0000)]
Rename LowerAllocations.h to ChangeAllocations.h since it now contains the
RaiseAllocations pass as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1525
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Jan 2002 01:03:39 +0000 (01:03 +0000)]
Fix ordering dependency problem
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1524
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Jan 2002 00:17:48 +0000 (00:17 +0000)]
Ooops, forgot to implement void PassManager::add(BasicBlockPass *BBP)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1523
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 22 Jan 2002 00:13:51 +0000 (00:13 +0000)]
Pull RaiseAllocations stuff out of the CleanGCC pass into it's own pass in
the ChangeAllocations.h header file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1522
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Jan 2002 23:34:02 +0000 (23:34 +0000)]
LowerAllocations is really a BasicBlock pass. Make it so.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1521
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Jan 2002 23:17:48 +0000 (23:17 +0000)]
Move stuff out of the Optimizations directories into the appropriate Transforms
directories. Eliminate the opt namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1520
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Jan 2002 23:17:07 +0000 (23:17 +0000)]
Chuck fixed the GCC problems so this hack is now unneccesary
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1519
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Jan 2002 23:16:30 +0000 (23:16 +0000)]
Elminate an unused variable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1518
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Jan 2002 23:15:20 +0000 (23:15 +0000)]
Reenable warning now that Chuck fixed GCC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1517
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Jan 2002 23:13:46 +0000 (23:13 +0000)]
Eliminate opt library
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1516
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Jan 2002 22:50:38 +0000 (22:50 +0000)]
Remove dead variable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1515
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Jan 2002 22:44:57 +0000 (22:44 +0000)]
Remove dead variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1514
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Jan 2002 22:42:49 +0000 (22:42 +0000)]
Fix for problem that caused both HUGE and INVALID latencies to be negative
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1513
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Jan 2002 21:45:44 +0000 (21:45 +0000)]
Include all header files individually instead of this one
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1512
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Jan 2002 21:44:38 +0000 (21:44 +0000)]
Pull stuff out of opt namespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1511
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Jan 2002 07:52:35 +0000 (07:52 +0000)]
Rename SwapStructureContents -> IPO/SimpleStructMutation
Move MutateStructTypes.(cpp|h) -> IPO/MutateStructTypes.(cpp|h)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1510
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Jan 2002 07:41:55 +0000 (07:41 +0000)]
Moved header
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1509
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Jan 2002 07:37:31 +0000 (07:37 +0000)]
Implementation of the new spiffy pass system
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1508
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Jan 2002 07:31:50 +0000 (07:31 +0000)]
Implement a more powerful, simpler, pass system. This pass system can figure
out how to run a collection of passes optimially given their behaviors and
charactaristics.
Convert code to use it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1507
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Jan 2002 07:31:00 +0000 (07:31 +0000)]
Implement a more powerful, simpler, pass system. This pass system can figure
out how to run a collection of passes optimially given their behaviors and
charactaristics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1506
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Jan 2002 06:50:08 +0000 (06:50 +0000)]
Add a path to LD_LIBRARY_PATH so that programs can find the stdC++ libraries
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1505
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 21 Jan 2002 01:33:12 +0000 (01:33 +0000)]
Oops lost a parenthesis somehow :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1504
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 20 Jan 2002 22:54:45 +0000 (22:54 +0000)]
Changes to build successfully with GCC 3.02
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1503
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 20 Jan 2002 19:01:26 +0000 (19:01 +0000)]
Add a note about endl semantics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1502
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Tue, 8 Jan 2002 16:31:28 +0000 (16:31 +0000)]
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1501
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Tue, 8 Jan 2002 16:29:23 +0000 (16:29 +0000)]
Fixed a bug in spill cost estimation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1500
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Mon, 7 Jan 2002 21:09:06 +0000 (21:09 +0000)]
PhyRegAlloc.cpp: Added temp area resetting before every call
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1499
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Mon, 7 Jan 2002 21:03:42 +0000 (21:03 +0000)]
Added more comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1498
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Mon, 7 Jan 2002 20:33:44 +0000 (20:33 +0000)]
removed SizeOfStackOperand constant from the SparcRegInfo class - no longer used
by code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1497
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Mon, 7 Jan 2002 20:28:49 +0000 (20:28 +0000)]
Added more comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1496
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Mon, 7 Jan 2002 19:57:37 +0000 (19:57 +0000)]
Added more comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1495
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Mon, 7 Jan 2002 19:20:28 +0000 (19:20 +0000)]
Added comments and correct logic for finding register sizes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1494
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Mon, 7 Jan 2002 19:19:18 +0000 (19:19 +0000)]
Added destructors and comments.
Added correct spill candidate selection logic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1493
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Mon, 7 Jan 2002 19:17:41 +0000 (19:17 +0000)]
MachineRegInfo: Added a method to get the size of a register pushed on to stack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1492
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Mon, 7 Jan 2002 19:16:26 +0000 (19:16 +0000)]
Added comments, destructors where necessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1491
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sat, 15 Dec 2001 01:13:42 +0000 (01:13 +0000)]
Renamed Makefile.target to Makefile.tests and folded in
Chris's Makefile.tests used to build and test single-source tests
(but with some uses of Output/ directory eliminated for now).
Let's not create two versions of this file!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1490
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sat, 15 Dec 2001 01:04:39 +0000 (01:04 +0000)]
Rename Makefile.target to Makefile.tests.
Make all a :: target.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1488
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sat, 15 Dec 2001 00:54:37 +0000 (00:54 +0000)]
Renaming to Makefile.tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1487
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sat, 15 Dec 2001 00:37:12 +0000 (00:37 +0000)]
Eliminate function getIndicesBROKEN().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1486
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sat, 15 Dec 2001 00:36:32 +0000 (00:36 +0000)]
Eliminate all uses of memInst->getIndicesBROKEN().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1485
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sat, 15 Dec 2001 00:35:48 +0000 (00:35 +0000)]
getIndexedOffset() shd take vector of Values, not of Constants!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1484
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sat, 15 Dec 2001 00:33:36 +0000 (00:33 +0000)]
Remove int hack to allow unsigned numbers greater than 2^63 - 1...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1483
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sat, 15 Dec 2001 00:29:14 +0000 (00:29 +0000)]
Run testsparc, not testcodegen for testing the back end.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1482
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:52:21 +0000 (16:52 +0000)]
initial checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1480
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:52:09 +0000 (16:52 +0000)]
Initial checkin of instcombine
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1479
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:50:35 +0000 (16:50 +0000)]
Add instruction combining pass
Rename -mergecons to -constmerge
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1478
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:49:29 +0000 (16:49 +0000)]
* Support the new -q flag for automated tests
* Remove unsized array support
* Add pointer indexing support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1477
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:48:30 +0000 (16:48 +0000)]
Add more passes to run after raising
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1476
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:46:53 +0000 (16:46 +0000)]
Update LLVM tests to use new pointer indexing, and remove unsized array test support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1474
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:43:59 +0000 (16:43 +0000)]
Build Programs subdirectory
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1473
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:43:26 +0000 (16:43 +0000)]
* Assert that indices are valid for an indexing instruction.
* Add support for indexing into pointers
* Remove support for unsized arrays
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1472
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:42:30 +0000 (16:42 +0000)]
Rename ConstPoolVals.cpp to Constants.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1471
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:41:56 +0000 (16:41 +0000)]
Remove unsized array support
Add new SequentialType class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1470
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:41:18 +0000 (16:41 +0000)]
Make strings SByte* arrays instead of UByte * arrays
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1469
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:39:22 +0000 (16:39 +0000)]
* isFirstClassType is now provided by the Type class
* Add ReplaceInstWithInst
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1468
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:38:59 +0000 (16:38 +0000)]
* add ReplaceInstWithInst
* Add support for pointer indexing
* Fix minor bugs that are majorly annoying
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1467
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:38:04 +0000 (16:38 +0000)]
Remove unsized array support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1466
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:37:52 +0000 (16:37 +0000)]
* Support pointer indexing
* Unsized arrays are a thing of the past, remove DoInsertArrayCast family
* Remove cases were we would get into infinite loops because we would insert a cast
which would then be removed, inserting a different cast, ad infinitum...
* Remove some code that should be redundant with ExprTypeConvert code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1465
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:35:53 +0000 (16:35 +0000)]
Many many changes and bugfixes:
* Remove support for unsized arrays
* Add pointer indexing support
* Allow more arbitrary malloc type changes (which are too generous currently
and should be fixed in the future)
* Allow more and better conversions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1464
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:32:20 +0000 (16:32 +0000)]
The proper prototype for malloc returns a pointer, not an unsized array
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1463
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:31:26 +0000 (16:31 +0000)]
Allow pointer indexing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1462
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:30:51 +0000 (16:30 +0000)]
Remove unsized array support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1461
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:30:09 +0000 (16:30 +0000)]
Add pointer indexing support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1460
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:29:12 +0000 (16:29 +0000)]
Don't waste as much horizontal space on #uses flag when printing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1459
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:28:42 +0000 (16:28 +0000)]
* Fix cases where we were calling Type->getName() instead of Type->getDescription()
* Remove unsized array support
* Malloc/alloca do not require that the first element be an unsized array to be an
array allocation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1458
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:26:05 +0000 (16:26 +0000)]
* Refactor trace values to work as a proper pass. Before it used to add
methods while the pass was running which was a no no. Now it adds the
printf method at pass initialization
* Revamp code to use printf calls instead of the old style print_<type>
calls.
* Simplify code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1457
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:23:53 +0000 (16:23 +0000)]
Refactor trace values to work as a proper pass. Before it used to add
methods while the pass was running which was a no no. Now it adds the
printf method at pass initialization
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1456
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:22:56 +0000 (16:22 +0000)]
* Remove support for unsized arrays.
* Free instruction does not accept a name
* MemAccessInst can now be used with cast/isa/dyn_cast/...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1455
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 14 Dec 2001 16:20:21 +0000 (16:20 +0000)]
PointerType and ArrayType now subclass Sequential type, which contains addressability logic for indexing. Unsized arrays have been removed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1454
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Thu, 13 Dec 2001 21:25:46 +0000 (21:25 +0000)]
added a section on how to modify live variable code to use LLVM instructions
instead of machine instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1451
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 13 Dec 2001 00:46:11 +0000 (00:46 +0000)]
Not just arrays are unsized
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1450
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 13 Dec 2001 00:45:40 +0000 (00:45 +0000)]
Assertion could never fail because another one would in it's place. :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1449
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 13 Dec 2001 00:45:06 +0000 (00:45 +0000)]
Some programs are using BB's as values, until we resolve this. Disable the assert
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1448
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 13 Dec 2001 00:44:23 +0000 (00:44 +0000)]
Build runtime library with local GCCAS
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1447
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 13 Dec 2001 00:44:09 +0000 (00:44 +0000)]
Implement strlen strdup strcmp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1446
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 13 Dec 2001 00:43:47 +0000 (00:43 +0000)]
Implement sprintf
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1445
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 13 Dec 2001 00:43:03 +0000 (00:43 +0000)]
Swap operands now preserves the semantics of the binary operator by changing
the opcode of the instruction if possible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1444
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 13 Dec 2001 00:41:27 +0000 (00:41 +0000)]
Add debugging to make a more useful message if a value gets constructed with a null type
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1443
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 13 Dec 2001 00:40:16 +0000 (00:40 +0000)]
Implement some nice functions useful for looking at types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1442
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 13 Dec 2001 00:39:49 +0000 (00:39 +0000)]
Implement proper iterator tags
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1441
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 13 Dec 2001 00:39:33 +0000 (00:39 +0000)]
Subclasses can change the opcode of an instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1440
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 13 Dec 2001 00:38:57 +0000 (00:38 +0000)]
Constants KNOW they are of a derived type
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1439
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Wed, 12 Dec 2001 15:19:55 +0000 (15:19 +0000)]
Added TRACEM option. Use -g when building native code for tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1438
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Sun, 9 Dec 2001 20:21:49 +0000 (20:21 +0000)]
Documentation (draft) for reg alloc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1437
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 9 Dec 2001 16:55:43 +0000 (16:55 +0000)]
Use _LOCAL_ gccas to build instead of Chris's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1436
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Sat, 8 Dec 2001 21:05:27 +0000 (21:05 +0000)]
Added more comments. Added code to destructor in MethodLiveVarInfo to delete
LiveVarSet caches.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1435
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Sat, 8 Dec 2001 21:04:22 +0000 (21:04 +0000)]
Added comments are more documentation info
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1434
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 8 Dec 2001 20:31:32 +0000 (20:31 +0000)]
Tell the user if a file is corrupt or not... not that the file cannot be
found.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1433
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 7 Dec 2001 04:40:30 +0000 (04:40 +0000)]
Implement more general conversions for getelementptr instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1432
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 7 Dec 2001 04:39:01 +0000 (04:39 +0000)]
Remove code that is superceeded by code in ExprTypeConvert.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1431
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 7 Dec 2001 04:26:02 +0000 (04:26 +0000)]
Don't insert scales of 1 :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1430
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 7 Dec 2001 04:25:36 +0000 (04:25 +0000)]
Run DCE before cleanupGCCoutput which will cause some dead types (like FILE) to be removed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1429
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 6 Dec 2001 18:06:37 +0000 (18:06 +0000)]
Do not pessimize users of this function. Fix logic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1428
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 6 Dec 2001 18:06:13 +0000 (18:06 +0000)]
We can do cast-add elimination even on casts that reinterpret
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1427
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 6 Dec 2001 18:05:55 +0000 (18:05 +0000)]
Fix bug that caused invalid transformations to be applied
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1426
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 5 Dec 2001 19:41:33 +0000 (19:41 +0000)]
Actually return true when a change has been made
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1425
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 5 Dec 2001 19:41:16 +0000 (19:41 +0000)]
Handle more complex array indexing expressions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1424
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 5 Dec 2001 19:40:32 +0000 (19:40 +0000)]
Fix pessimizations on sized arrays
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1423
91177308-0d34-0410-b5e6-
96231b3b80d8