summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Moved iterators to common file.Tanya Lattner2004-01-201-62/+0
| | | | llvm-svn: 10925
* Fix bogus warning and simplify codeChris Lattner2004-01-201-11/+5
| | | | llvm-svn: 10924
* Major changes. Now we only compactify individual type planes if it is inChris Lattner2004-01-201-50/+196
| | | | | | | | | | | | | | fact "profitable" to do so. This makes compactification "free" for small programs (ie, it is completely disabled) and even helps large programs by not having to encode pointless compactification planes. On 176.gcc, this saves 50K from the bytecode file, which is, alas only a couple percent. This concludes my head bashing against the bytecode format, at least for now. llvm-svn: 10922
* Bugfixes for dealing with partially compactified functionsChris Lattner2004-01-202-14/+29
| | | | llvm-svn: 10920
* Save another 30K from 176.gcc by encoding the compaction table a bit moreChris Lattner2004-01-182-7/+32
| | | | | | intelligently. llvm-svn: 10918
* Remove -debug outputChris Lattner2004-01-181-7/+0
| | | | llvm-svn: 10917
* Add support for writing bytecode files with compactiontables for bytecode files.Chris Lattner2004-01-184-36/+73
| | | | | | | | This shrinks the bytecode file for 176.gcc by about 200K (10%), and 254.gap by about 167K, a 25% reduction. There is still a lot of room for improvement in the encoding of the compaction table. llvm-svn: 10915
* Add support for reading bytecode files with compactiontables for bytecode files.Chris Lattner2004-01-183-41/+186
| | | | | | | | This shrinks the bytecode file for 176.gcc by about 200K (10%), and 254.gap by about 167K, a 25% reduction. There is still a lot of room for improvement in the encoding of the compaction table. llvm-svn: 10914
* Add support for building the compactiontable for bytecode files. This shrinksChris Lattner2004-01-181-54/+221
| | | | | | | | the bytecode file for 176.gcc by about 200K (10%), and 254.gap by about 167K, a 25% reduction. There is still a lot of room for improvement in the encoding of the compaction table. llvm-svn: 10913
* Eliminate special case handling for CPR'sChris Lattner2004-01-181-17/+6
| | | | | | | Fix some problem cases where I was building the slot calculator in bytecode writer mode instead of asmwriter mode. llvm-svn: 10911
* Bytecode format for LLVM 1.2 no longer explicitly encodes zeros in primitiveChris Lattner2004-01-174-12/+33
| | | | | | | type planes. This saves about 5k on 176.gcc, and is needed for a subsequent patch of mine I'm working on. llvm-svn: 10908
* This file goes awayChris Lattner2004-01-171-24/+0
| | | | llvm-svn: 10905
* Handle printing of intervals that are not assign to any physicalAlkis Evlogimenos2004-01-161-1/+1
| | | | | | register yet (2nd try). llvm-svn: 10896
* Handle printing of intervals that are not assign to any physicalAlkis Evlogimenos2004-01-161-6/+7
| | | | | | register yet. llvm-svn: 10895
* Fold open interval ends handling intoAlkis Evlogimenos2004-01-161-10/+4
| | | | | | LiveIntervals::Interval::expiredAt() and simplify regalloc code. llvm-svn: 10894
* Add asserts to previous change.Alkis Evlogimenos2004-01-161-2/+6
| | | | llvm-svn: 10893
* Use a list instead of a vector to store intervals. This will be neededAlkis Evlogimenos2004-01-161-7/+6
| | | | | | when we join intervals and one of the two will need to be removed. llvm-svn: 10892
* Use the LLVM standard name mangling infrastructure instead of reinventing theMisha Brukman2004-01-151-77/+18
| | | | | | wheel. llvm-svn: 10891
* If these blocks are empty, there is no reason to even emit the bytecode blocks.Chris Lattner2004-01-152-8/+24
| | | | | | This saves about 15K in 176.gcc, coupled with another patch that I'm working on. llvm-svn: 10889
* Cleanups & efficiency improvementsChris Lattner2004-01-151-18/+3
| | | | llvm-svn: 10888
* The bcwriter does not want ConstantPointerRef's to be indexed, and the ↵Chris Lattner2004-01-151-5/+14
| | | | | | asmwriter never did! llvm-svn: 10885
* ConstantPointerRef's are no longer emitted. This saves 20028 bytes in theChris Lattner2004-01-151-7/+3
| | | | | | | | bytecode files when compiling 176.gcc, but more importantly will make it easier to eliminate CPR's in the future (no new .bc revision will be required to support them) llvm-svn: 10884
* Allow bytecode files to refer directly to global values as constants, insteadChris Lattner2004-01-151-2/+6
| | | | | | | | of forcing them to go through ConstantPointerRef's. This allows bytecode files to mirror .ll files, allows more efficient encoding, and makes it easier to eventually eliminate CPR's. llvm-svn: 10883
* Fix more breakage with string change.Chris Lattner2004-01-151-2/+2
| | | | llvm-svn: 10882
* Include TargetRegInfo.h and declare SparcTargetMachine forward, to make thisBrian Gaeke2004-01-151-1/+4
| | | | | | header more easily includable. llvm-svn: 10880
* Make this assertion more self-explanatory.Brian Gaeke2004-01-151-2/+2
| | | | llvm-svn: 10879
* Fix PR73: bytecode format inconsistentChris Lattner2004-01-151-2/+0
| | | | llvm-svn: 10876
* Fix PR73Chris Lattner2004-01-152-1/+14
| | | | llvm-svn: 10875
* Fix brokenness in my last checkingChris Lattner2004-01-151-1/+1
| | | | llvm-svn: 10874
* Change all of the bytecode reader primitives to throw exceptions instead ofChris Lattner2004-01-155-244/+131
| | | | | | | | | | returning error codes. Because they don't return an error code, they can return the value read, which simplifies the code and makes the reader more efficient (yaay!). Also eliminate the special case code for little endian machines. llvm-svn: 10871
* Remove the optimization that depends on ENDIAN_LITTLE: it's not worth it.Chris Lattner2004-01-151-8/+0
| | | | llvm-svn: 10870
* The new bytecode format supports emitting strings a special case. This isChris Lattner2004-01-143-21/+63
| | | | | | | | | | | | intended to save size (and does on small programs), but on big programs it actually increases the size of the program slightly. The deal is that many functions end up using the characters that the string contained, and the characters are no longer in the global constant table, so they have to be emitted in function specific constant pools. This pessimization will be fixed in subsequent patches. llvm-svn: 10864
* Version 1.2 now supports encoding strings as a special case, to avoid havingChris Lattner2004-01-143-2/+47
| | | | | | to emit all of those sbyte constants. llvm-svn: 10863
* When emitting bytecode, handle strings specially. Do not add the charactersChris Lattner2004-01-141-9/+52
| | | | | | that make up the strings to the slotcalculator. llvm-svn: 10862
* Like output_data, it's obvious that input_data was only used with 1 characterChris Lattner2004-01-141-9/+1
| | | | | | data. llvm-svn: 10861
* "fix" a nasty race conditionChris Lattner2004-01-141-1/+20
| | | | llvm-svn: 10860
* Fix some exception safety problemsChris Lattner2004-01-141-9/+22
| | | | llvm-svn: 10859
* Hrm, apparently I missed lowering this intrinsic. :(Chris Lattner2004-01-141-0/+1
| | | | llvm-svn: 10858
* It is obvious that this has never been used for outputing more than a singleChris Lattner2004-01-141-10/+1
| | | | | | byte, it's totally endian incorrect! llvm-svn: 10857
* Be const correctChris Lattner2004-01-141-3/+3
| | | | llvm-svn: 10856
* Fix bug in previous checkin: Demorgan would be ashamed of me, I need toChris Lattner2004-01-141-1/+1
| | | | | | lay off the crack. llvm-svn: 10855
* Eliminate the isStringCompatible function, using ConstantArray::isString.Chris Lattner2004-01-141-40/+22
| | | | | | | | | | It's not clear why the code was looking for signed chars < 0, but it can't matter to the assembler anyway, so the check goes away. This also fixes compatibility with arrays of [us]byte that have constantexprs in them. Also slightly restructure some code to be cleaner. llvm-svn: 10854
* Eliminate the isStringCompatible function, using ConstantArray::isString.Chris Lattner2004-01-141-18/+3
| | | | | | | It's not clear why the code was looking for signed chars < 0, but it can't matter to the assembler anyway, so the check goes away. llvm-svn: 10853
* Use new methodChris Lattner2004-01-141-2/+1
| | | | llvm-svn: 10852
* Implement ConstantArray::isStringChris Lattner2004-01-141-3/+16
| | | | llvm-svn: 10851
* Ok, I can't handle it. This is a temporary checkin of a ton of statistics thatChris Lattner2004-01-143-9/+100
| | | | | | | i'm using in my work to reduce the bytecode file sizes. These will eventually be removed. llvm-svn: 10849
* Remove support for the pre-1.0 bytecode version #1. This will becomeChris Lattner2004-01-142-60/+34
| | | | | | the bytecode revision generated by LLVM 1.2. llvm-svn: 10848
* Properly update #intervals statistic.Alkis Evlogimenos2004-01-141-0/+2
| | | | llvm-svn: 10847
* Fix InstCombine/2004-01-13-InstCombineInvokePHI.ll, which also fixes lotsChris Lattner2004-01-141-4/+20
| | | | | | of C++ programs in Shootout-C++, including lists1 and moments, etc llvm-svn: 10845
* Don't pass anything to the IntrinsicLowering class that is not_intrinsic,Brian Gaeke2004-01-141-1/+4
| | | | | | | | | because that makes it abort. Also, fix a typo in a comment. This checkin brought to you by the "It only takes about 30 seconds to run ENABLE_LLI tests on Shootout on zion, even if they all dump core" fund. llvm-svn: 10844
OpenPOWER on IntegriCloud