summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Remove superfluous 'extern' variable that was causing a warning with clang.Bill Wendling2009-12-161-1/+1
| | | | llvm-svn: 91552
* Reuse lowered phi nodes.Jakob Stoklund Olesen2009-12-163-43/+124
| | | | | | | | | | | | | | Tail duplication produces lots of identical phi nodes in different basic blocks. Teach PHIElimination to reuse the join registers when lowering a phi node that is identical to an already lowered node. This saves virtual registers, and more importantly it avoids creating copies the the coalescer doesn't know how to eliminate. Teach LiveIntervalAnalysis about the phi joins with multiple uses. This patch significantly reduces code size produced by -pre-regalloc-taildup. llvm-svn: 91549
* Fix one more missing this-> to placate that picky clang++.Daniel Dunbar2009-12-161-1/+1
| | | | llvm-svn: 91536
* Revert "Reapply 91184 with fixes and an addition to the testcase to cover theDaniel Dunbar2009-12-162-513/+404
| | | | | | | | | problem", this broke llvm-gcc bootstrap for release builds on x86_64-apple-darwin10. This reverts commit db22309800b224a9f5f51baf76071d7a93ce59c9. llvm-svn: 91534
* Revert "Initial work on disabling the scheduler. This is a work in progress, andDaniel Dunbar2009-12-164-205/+29
| | | | | | | this", this broke llvm-gcc bootstrap for release builds on x86_64-apple-darwin10. llvm-svn: 91533
* reapply my strstr optimization. I have reproduced the x86-64 bootstrapChris Lattner2009-12-162-9/+123
| | | | | | | miscompile (i386.o miscompares) but it happens both with and without this patch. llvm-svn: 91532
* fix more missing this->'s to placate clang++Chris Lattner2009-12-161-26/+27
| | | | llvm-svn: 91531
* Fix a missing this-> that clang++ notices.Chris Lattner2009-12-161-1/+1
| | | | llvm-svn: 91530
* now that libsystem no longer uses SmallVector, we can move Chris Lattner2009-12-163-21/+41
| | | | | | SmallVectorBase::grow_pod out of line, finally satisfying PR3758. llvm-svn: 91529
* remove use of SmallVector from Path::makeUnique. Path::makeUniqueChris Lattner2009-12-161-14/+10
| | | | | | is not used by anything performance sensitive, so just use std::string. llvm-svn: 91528
* eliminate an extraneous use of SmallVector in a case whereChris Lattner2009-12-161-6/+4
| | | | | | a fixed size buffer is perfectly fine. llvm-svn: 91527
* factor out the grow() method for all pod implementations into oneChris Lattner2009-12-161-37/+76
| | | | | | common function. It is still an inline method, which will be fixed next. llvm-svn: 91526
* Use different name for argument and fieldVictor Hernandez2009-12-162-3/+3
| | | | llvm-svn: 91524
* pull destroy_range and uninitialized_copy up to theChris Lattner2009-12-161-26/+32
| | | | | | | SmallVectorTemplateBase class, which allows us to statically dispatch on isPodLike instead of dynamically. llvm-svn: 91523
* sink most of the meat in smallvector back from SmallVectorTemplateCommonChris Lattner2009-12-161-202/+210
| | | | | | | down into SmallVectorImpl. This requires sprinking a ton of this->'s in, but gives us a place to factor. llvm-svn: 91522
* Make this test pass on Linux.Nick Lewycky2009-12-161-9/+20
| | | | llvm-svn: 91521
* substantial refactoring of SmallVector, now most code is in ↵Chris Lattner2009-12-161-57/+93
| | | | | | | | | SmallVectorTemplateCommon, and there is a new SmallVectorTemplateBase class in between it and SmallVectorImpl. SmallVectorTemplateBase can be specialized based on isPodLike. llvm-svn: 91518
* MDNodes that refer to an instruction are local to a function; in that case, ↵Victor Hernandez2009-12-162-5/+16
| | | | | | explicitly keep track of the function they are local to llvm-svn: 91497
* Add encoding bits for some Thumb instructions. Plus explicitly set the top twoJohnny Chen2009-12-163-10/+18
| | | | | | bytes of Inst to 0x0000 for the benefit of the Thumb decoder. llvm-svn: 91496
* XFAIL on ppc-darwin.Devang Patel2009-12-161-1/+1
| | | | llvm-svn: 91495
* Re-enable 91381 with fixes.Evan Cheng2009-12-164-13/+40
| | | | llvm-svn: 91489
* revert my strstr optimization, I'm told it breaks x86-64 bootstrap.Chris Lattner2009-12-162-123/+9
| | | | | | Will reapply with a fix when I get a chance. llvm-svn: 91486
* Do better with physical reg operands (typically, from inline asm)Dale Johannesen2009-12-163-18/+92
| | | | | | | | | | | | | | | | | | in local register allocator. If a reg-reg copy has a phys reg input and a virt reg output, and this is the last use of the phys reg, assign the phys reg to the virt reg. If a reg-reg copy has a phys reg output and we need to reload its spilled input, reload it directly into the phys reg than passing it through another reg. Following 76208, there is sometimes no dependency between the def of a phys reg and its use; this creates a window where that phys reg can be used for spilling (this is true in linear scan also). This is bad and needs to be fixed a better way, although 76208 works too well in practice to be reverted. However, there should normally be no spilling within inline asm blocks. The patch here goes a long way towards making this actually be true. llvm-svn: 91485
* Every anonymous namespace is different. Caught by clang++.John McCall2009-12-161-4/+0
| | | | llvm-svn: 91481
* Explicit template instantiations must happen in the template's immediatelyJohn McCall2009-12-162-0/+4
| | | | | | enclosing namespace. Caught by clang++. llvm-svn: 91480
* Helpful comment added. Some code cleanup. No functional change.Bill Wendling2009-12-161-11/+27
| | | | llvm-svn: 91479
* Initialize uninitialized variables.Bill Wendling2009-12-161-1/+1
| | | | llvm-svn: 91477
* Initialize uninitialized variables.Bill Wendling2009-12-161-1/+1
| | | | llvm-svn: 91475
* Change indirect-globals to use a dedicated allocIndirectGV. This lets usJeffrey Yasskin2009-12-157-108/+85
| | | | | | | | | remove start/finishGVStub and the BufferState helper class from the MachineCodeEmitter interface. It has the side-effect of not setting the indirect global writable and then executable on ARM, but that shouldn't be necessary. llvm-svn: 91464
* Some command lines don't like numbers with leading zeros. Remove them.Bill Wendling2009-12-151-1/+5
| | | | llvm-svn: 91463
* Reapply 91184 with fixes and an addition to the testcase to cover the problemBob Wilson2009-12-152-404/+513
| | | | | | | | | | found last time. Instead of trying to modify the IR while iterating over it, I've change it to keep a list of WeakVH references to dead instructions, and then delete those instructions later. I also added some special case code to detect and handle the situation when both operands of a memcpy intrinsic are referencing the same alloca. llvm-svn: 91459
* lit: Improve error when gtest discovery fails.Daniel Dunbar2009-12-151-3/+8
| | | | llvm-svn: 91458
* Revert 90628, which was incorrect.Dan Gohman2009-12-152-8/+10
| | | | llvm-svn: 91448
* Fix GetConstantStringInfo to not look into MDString (it works on Chris Lattner2009-12-152-15/+7
| | | | | | | real data, not metadata) and fix DbgInfoPrinter to not abuse GetConstantStringInfo. llvm-svn: 91444
* whitespaceJim Grosbach2009-12-151-26/+26
| | | | llvm-svn: 91442
* Add support to emit debug info for C++ namespaces.Devang Patel2009-12-155-23/+128
| | | | llvm-svn: 91440
* optimize strstr, PR5783Chris Lattner2009-12-152-9/+123
| | | | llvm-svn: 91438
* Added encoding bits for the Thumb ISA. Initial checkin.Johnny Chen2009-12-153-348/+1219
| | | | llvm-svn: 91434
* Delete an unused function.Dan Gohman2009-12-151-38/+0
| | | | llvm-svn: 91432
* add some other xforms that should be done as part of PR5783Chris Lattner2009-12-151-3/+4
| | | | llvm-svn: 91428
* a few improvements:Chris Lattner2009-12-151-10/+8
| | | | | | | | | 1. Use std::equal instead of reinventing it. 2. don't run dtors in destroy_range if element is pod-like. 3. Use isPodLike to decide between memcpy/uninitialized_copy instead of is_class. isPodLike is more generous in some cases. llvm-svn: 91427
* hoist the begin/end/capacity members and a few trivial methodsChris Lattner2009-12-151-145/+145
| | | | | | up into the non-templated SmallVectorBase class. llvm-svn: 91426
* improve isPodLike to know that all non-class types are pod.Chris Lattner2009-12-152-27/+24
| | | | llvm-svn: 91425
* Lang verified that SlotIndex is "pod like" even though it isn't a pod.Chris Lattner2009-12-151-1/+3
| | | | llvm-svn: 91423
* Remove isPod() from DenseMapInfo, splitting it out to its ownChris Lattner2009-12-1521-79/+115
| | | | | | | | isPodLike type trait. This is a generally useful type trait for more than just DenseMap, and we really care about whether something acts like a pod, not whether it really is a pod. llvm-svn: 91421
* Convert llvmc tests to FileCheck.Mikhail Glushenkov2009-12-1514-25/+42
| | | | llvm-svn: 91420
* Support hook invocation from 'append_cmd'.Mikhail Glushenkov2009-12-153-37/+114
| | | | llvm-svn: 91419
* Fix an encoding bug.Evan Cheng2009-12-151-1/+1
| | | | llvm-svn: 91417
* add an ALWAYS_INLINE macro, which does the obvious thing.Chris Lattner2009-12-151-0/+10
| | | | llvm-svn: 91416
* For fastcc on x86, let ECX be used as a return register after EAX and EDXKenneth Uildriks2009-12-152-1/+23
| | | | llvm-svn: 91410
OpenPOWER on IntegriCloud