summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Add some more information to the top-level comment for this file.Dan Gohman2008-10-281-1/+5
| | | | llvm-svn: 58339
* Support for constant islands in the ARM JIT.Jim Grosbach2008-10-284-2/+67
| | | | | | | | | | | | | | | | Since the ARM constant pool handling supercedes the standard LLVM constant pool entirely, the JIT emitter does not allocate space for the constants, nor initialize the memory. The constant pool is considered part of the instruction stream. Likewise, when resolving relocations into the constant pool, a hook into the target back end is used to resolve from the constant ID# to the address where the constant is stored. For now, the support in the ARM emitter is limited to 32-bit integer. Future patches will expand this to the full range of constants necessary. llvm-svn: 58338
* fix prototype of print, it is (llvm/Pass.h):Torok Edwin2008-10-281-1/+1
| | | | | | | | | virtual void print(std::ostream &O, const Module *M) const; instead of virtual void print(llvm::OStream &O, const Module *M) const; as the docs say llvm-svn: 58337
* Avoid calls to setSubgraphColor in release mode. They generate lots of error ↵Evan Cheng2008-10-281-1/+4
| | | | | | messages and slow down compilation. llvm-svn: 58336
* Do not allow a user to set the operand for a constant.Tanya Lattner2008-10-281-0/+3
| | | | llvm-svn: 58335
* fix duplicate anchor names, and broken anchor links from the TOCTorok Edwin2008-10-281-3/+3
| | | | llvm-svn: 58332
* Fix darwin ppc llvm-gcc build breakage: interceptDuncan Sands2008-10-283-5/+75
| | | | | | | | | | ppcf128 to i32 conversion and expand it into a code sequence like in LegalizeDAG. This needs custom ppc lowering of FP_ROUND_INREG, so turn that on and make it work with LegalizeTypes. Probably PPC should simply custom lower the original conversion. llvm-svn: 58329
* Turn off LegalizeTypes for this test for theDuncan Sands2008-10-281-1/+1
| | | | | | moment, while waiting for a proper solution. llvm-svn: 58324
* Fix a testcase provided by Bill in which the nodeDuncan Sands2008-10-283-30/+48
| | | | | | | | id could end up being wrong mostly because of forgetting to remap new nodes that morphed into processed nodes through CSE. llvm-svn: 58323
* Don't produce invalid comparisons after legalize.Chris Lattner2008-10-281-2/+4
| | | | llvm-svn: 58320
* fix some whitespace stuffChris Lattner2008-10-281-3/+3
| | | | llvm-svn: 58319
* fit in 80 colsChris Lattner2008-10-281-1/+2
| | | | llvm-svn: 58318
* Fix a nasty miscompilation of 176.gcc on linux/x86 where we synthesizedChris Lattner2008-10-282-4/+31
| | | | | | | | | | | a memset using 16-byte XMM stores, but where the stack realignment code didn't work. Until it does (PR2962) disable use of xmm regs in memcpy and memset formation for linux and other targets with insufficiently aligned stacks. This is part of PR2888 llvm-svn: 58317
* more comment cleanups.Chris Lattner2008-10-281-3/+3
| | | | llvm-svn: 58316
* comment cleanups.Chris Lattner2008-10-281-3/+3
| | | | llvm-svn: 58315
* If def is in the same mbb as the barrier, spilt the value after the last use ↵Evan Cheng2008-10-281-8/+18
| | | | | | before the barrier. llvm-svn: 58314
* Add command line option to limit the number splits to help debugging.Evan Cheng2008-10-281-3/+7
| | | | llvm-svn: 58312
* Fix the name of the include guard to match the filename.Dan Gohman2008-10-281-2/+2
| | | | llvm-svn: 58310
* Avoid putting a split past the end of the live range; always shrink wrap ↵Evan Cheng2008-10-283-11/+93
| | | | | | live interval in the barrier mbb. llvm-svn: 58309
* - Fix SUBVERSION string to handle x.x.x version number formats.Bill Wendling2008-10-271-3/+6
| | | | | | | | - Add VERBOSE=1 flag. - Specify the LLVM_SUBMIT_VERSION when doing the "make install". The libLTO.dylib relies upon this flag during that time. llvm-svn: 58298
* Silence a bogus compile time warning.Evan Cheng2008-10-271-1/+1
| | | | llvm-svn: 58297
* Re-apply 55137 with fixes.David Greene2008-10-271-4/+7
| | | | llvm-svn: 58296
* Remove val# defined by a remat'ed def that is now dead.Evan Cheng2008-10-274-2/+77
| | | | llvm-svn: 58294
* Fix bogus comparison of "const char *" with c-string literal. Use strcmp ↵Ted Kremenek2008-10-271-2/+2
| | | | | | instead. llvm-svn: 58290
* Have TableGen emit setSubgraphColor calls under control of a -gen-debugDavid Greene2008-10-2711-16/+61
| | | | | | | | flag. Then in a debugger developers can set breakpoints at these calls to see waht is about to be selected and what the resulting subgraph looks like. This really helps when debugging instruction selection. llvm-svn: 58278
* Return bool (inserted) from StringSet::insert as for StringMap::insert.Daniel Dunbar2008-10-271-3/+3
| | | | llvm-svn: 58268
* Remove tabs from my previous commit.Cedric Venet2008-10-271-2/+2
| | | | llvm-svn: 58263
* rename vec_spat -> vec_splat, pointed out by duncanChris Lattner2008-10-271-0/+0
| | | | llvm-svn: 58260
* Add setSubgraphColor to color an entire portion of a SelectionDAG. ThisDavid Greene2008-10-272-0/+68
| | | | | | will be used to support debug features in TableGen. llvm-svn: 58257
* Add STL-style typedefs and default constructors to make it possible toDavid Greene2008-10-271-0/+5
| | | | | | use DenseMap in more contexts. llvm-svn: 58256
* Fix PR2634. Create new virtual registers from spills early so that weDavid Greene2008-10-271-8/+19
| | | | | | | can give it the same stack slot as the spilled interval if it is folded. This prevents the fold/unfold code from pointing to the wrong register. llvm-svn: 58255
* Remove redundant word in tblgen error message.Matthijs Kooijman2008-10-271-1/+1
| | | | llvm-svn: 58250
* Fix UpdateNodeOperands so that it does CSE of callsDuncan Sands2008-10-271-86/+52
| | | | | | | | | (and a bunch of other node types). While there, I added a doNotCSE predicate and used it to reduce code duplication (some of the duplicated code was wrong...). This fixes ARM/cse-libcalls.ll when using LegalizeTypes. llvm-svn: 58249
* Fix a bug in which a node could be added to theDuncan Sands2008-10-271-3/+8
| | | | | | | | | | | | worklist twice: UpdateNodeOperands could morph a new node into a node already on the worklist. We would then recalculate the NodeId for this existing node and add it to the worklist. The testcase is ARM/cse-libcalls.ll, the problem showing up once UpdateNodeOperands is taught to do CSE for calls. llvm-svn: 58246
* Avoid crashing if instruction is not part of a loop.Torok Edwin2008-10-271-2/+3
| | | | | | If it is not part of a loop it is obviously invariant wrt to all loops. llvm-svn: 58240
* formatting tweak for intrinsicGabor Greif2008-10-271-1/+1
| | | | llvm-svn: 58239
* export an ID for the instructionNamer, allowing analysis/transformation passesTorok Edwin2008-10-272-0/+2
| | | | | | that need it to require it by ID. llvm-svn: 58238
* Some grammar fixes, and non-invasive format changes.Bill Wendling2008-10-271-53/+54
| | | | llvm-svn: 58237
* Turn on LegalizeTypes, the new type legalizationDuncan Sands2008-10-2726-35/+27
| | | | | | | codegen infrastructure, by default. Please report any breakage to the mailing lists. llvm-svn: 58232
* Fix an obvious copy/pasto.Nick Lewycky2008-10-271-4/+4
| | | | llvm-svn: 58231
* For now, don't split live intervals around x87 stack register barriers. ↵Evan Cheng2008-10-276-1/+60
| | | | | | FpGET_ST0_80 must be right after a call instruction (and ADJCALLSTACKUP) so we need to find a way to prevent reload of x87 registers between them. llvm-svn: 58230
* Rewrite all the 'PromoteLocallyUsedAlloca[s]' logic. With the power ofChris Lattner2008-10-271-175/+97
| | | | | | | | | | | | | | | | LargeBlockInfo, we can now dramatically simplify their implementation and speed them up at the same time. Now the code has time proportional to the number of uses of the alloca, not the size of the block. This also eliminates code that tried to batch up different allocas which are used in the same blocks, and eliminates the 'retry list' logic which was baroque and no unneccesary. In addition to being a speedup for crazy cases, this is also a nice cleanup: PromoteMemoryToRegister.cpp | 270 +++++++++++++++----------------------------- 1 file changed, 96 insertions(+), 174 deletions(-) llvm-svn: 58229
* no need to print outputChris Lattner2008-10-271-1/+1
| | | | llvm-svn: 58228
* Add a new LargeBlockInfo helper, which is just a wrapper aroundChris Lattner2008-10-271-57/+123
| | | | | | | | | a trivial dense map. Use this in RewriteSingleStoreAlloca to avoid aggressively rescanning blocks over and over again. This fixes PR2925, speeding up mem2reg on the testcase in that bug from 4.56s to 0.02s in a debug build on my machine. llvm-svn: 58227
* mention getresult -> extractvalue (PR2935)Chris Lattner2008-10-271-0/+4
| | | | llvm-svn: 58226
* Increase default setting of tail-merge-threshold toDale Johannesen2008-10-271-1/+1
| | | | | | 150, based on llvm-test measurements. llvm-svn: 58225
* Remove -check-exit-code from bugpoint. This is subsumed by -append-exit-code.Nick Lewycky2008-10-263-29/+5
| | | | | | Note that -check-exit-code was on by default while -append-exit-code is not. llvm-svn: 58221
* fix PR2953, an off-by-one error handling formatted i/o. Chris Lattner2008-10-261-1/+1
| | | | | | Thanks to Török Edwin for the awesome reduced testcase. llvm-svn: 58199
* remove eh output from this test.Chris Lattner2008-10-261-6/+6
| | | | llvm-svn: 58196
* Add a default constructor to AsmWriterOperand to make VS2008sp1 happy. ↵Cedric Venet2008-10-261-0/+3
| | | | | | (AsmWriterOperand is used in a std::pair, and VS need to generate the default constructor of this pair). llvm-svn: 58185
OpenPOWER on IntegriCloud