summaryrefslogtreecommitdiffstats
path: root/llvm/test
Commit message (Collapse)AuthorAgeFilesLines
* Fix PR5258, jump-threading creating invalid PHIs.Torok Edwin2009-10-201-0/+348
| | | | | | | When an incoming value for a PHI is updated, we must also updated all other incoming values for the same BB to match, otherwise we create invalid PHIs. llvm-svn: 84638
* Fix PR4313: IPSCCP was not setting the lattice value for the invoke instructionTorok Edwin2009-10-201-0/+716
| | | | | | | | | | when the invoke had multiple return values: it set the lattice value only on the extractvalue. This caused the invoke's lattice value to remain the default (undefined), and later propagated to extractvalue's operand, which incorrectly introduces undefined behavior. llvm-svn: 84637
* Re-apply r84295, with fixes to how the loop "top" and "bottom" blocks areDan Gohman2009-10-203-1/+280
| | | | | | | | | tracked. Instead of trying to manually keep track of these locations while doing complex modifications, just recompute them when they're needed. This fixes a bug in which the TopMBB and BotMBB were not correctly updated, leading to invalid transformations. llvm-svn: 84598
* If the physical register being spilled does not have an interval, spill its ↵Evan Cheng2009-10-201-0/+54
| | | | | | sub-registers instead. llvm-svn: 84586
* Enable allocation of R3 in Thumb1Jim Grosbach2009-10-191-1/+1
| | | | llvm-svn: 84563
* convert to filecheck syntax and make a lot more aggressive.Chris Lattner2009-10-191-8/+68
| | | | llvm-svn: 84517
* Revert r84295, this unbreaks llvm-gcc bootstrap on x86-64/linuxAnton Korobeynikov2009-10-192-208/+1
| | | | llvm-svn: 84516
* rename testChris Lattner2009-10-191-0/+0
| | | | llvm-svn: 84515
* Fix SplitBlockPredecessors' LoopInfo updating code to handle the caseDan Gohman2009-10-191-0/+20
| | | | | | | | where a loop's header is being split and it has predecessors which are not contained by the most-nested loop which contains the loop. This fixes PR5235. llvm-svn: 84505
* Fix PR5247, "lock addq" pattern (and other atomics), it DOES modify EFLAGS.Torok Edwin2009-10-191-0/+69
| | | | | | | LLC was scheduling compares before the adds causing wrong branches to be taken in programs, resulting in misoptimized code wherever atomic adds where used. llvm-svn: 84485
* eliminate md_on_instruction.ll, md_on_instruction2.ll is a superset of it.Chris Lattner2009-10-192-24/+1
| | | | llvm-svn: 84464
* Teach lit that the .c files in 'test/CodeGen/CellSPU/useful-harnesses' ↵Daniel Dunbar2009-10-191-0/+1
| | | | | | aren't tests. llvm-svn: 84460
* Add support for matching shuffle patterns with palignr.Nate Begeman2009-10-193-15/+70
| | | | llvm-svn: 84459
* Turn on post-alloc scheduling for x86.Evan Cheng2009-10-1813-50/+38
| | | | llvm-svn: 84431
* remove a now-pointless regtestChris Lattner2009-10-181-15/+0
| | | | llvm-svn: 84409
* remove testcase for dead passChris Lattner2009-10-182-16/+0
| | | | llvm-svn: 84406
* fix testChris Lattner2009-10-181-1/+1
| | | | llvm-svn: 84405
* tighten up test3, add test3a for the converse Chris Lattner2009-10-181-3/+22
| | | | | | transform, which isn't happening yet. llvm-svn: 84402
* tighten test2, add a test that it doesn't get transformed in the invalid ↵Chris Lattner2009-10-181-1/+12
| | | | | | edge case. llvm-svn: 84401
* Merge tests into modref.ll. Also add a test for r84174 at Chris' behest!Nick Lewycky2009-10-183-31/+41
| | | | llvm-svn: 84400
* Add a couple new testcases.Nick Lewycky2009-10-182-0/+30
| | | | llvm-svn: 84385
* replace a useless test with a useful oneChris Lattner2009-10-171-13/+19
| | | | llvm-svn: 84383
* Fix test/Bindings/Ocaml/vmcore.ml. When IRBuilder::CreateMalloc was removed,Nick Lewycky2009-10-171-3/+3
| | | | | | | LLVMBuildMalloc was reimplemented but with the bug that it didn't insert the resulting instruction. llvm-svn: 84374
* Teach vm core to more aggressively fold 'trunc' constantexprs,Chris Lattner2009-10-171-0/+18
| | | | | | | | | allowing it to simplify the crazy constantexprs in the testcases down to something sensible. This allows -std-compile-opts to completely "devirtualize" the pointers to member functions in the testcase from PR5176. llvm-svn: 84368
* remove # uses from FileCheck lines.Chris Lattner2009-10-171-14/+15
| | | | llvm-svn: 84367
* rename testChris Lattner2009-10-171-0/+0
| | | | llvm-svn: 84364
* Disallow multiple instances of PluginPriority.Mikhail Glushenkov2009-10-171-0/+10
| | | | | | | Several instances of PluginPriority in a single file most probably signifies a programming error. llvm-svn: 84350
* Simplify some code (first hunk) and fix PR5208 (second hunk) byChris Lattner2009-10-171-1/+32
| | | | | | updating the callgraph when introducing a call. llvm-svn: 84310
* Reclaim a lost month.Daniel Dunbar2009-10-172-0/+0
| | | | llvm-svn: 84303
* Enhance CodePlacementOpt's unconditional intra-loop branch elimination logicDan Gohman2009-10-172-1/+208
| | | | | | | | | | | | to be more general and understand more varieties of loops. Teach CodePlacementOpt to reorganize the basic blocks of a loop so that they are contiguous. This also includes a fair amount of logic for preserving fall-through edges while doing so. This fixes a BranchFolding-ism where blocks which can't be made to use a fall-through edge and don't conveniently fit anywhere nearby get tossed out to the end of the function. llvm-svn: 84295
* Autoupgrade malloc insts to malloc calls.Victor Hernandez2009-10-179-12/+17
| | | | | | | | Update testcases that rely on malloc insts being present. Also prematurely remove MallocInst handling from IndMemRemoval and RaiseAllocations to help pass tests in this incremental step. llvm-svn: 84292
* HeapAllocSRoA also needs to check if malloc array size can be computed.Victor Hernandez2009-10-161-0/+26
| | | | llvm-svn: 84288
* Update tests to use FileCheckMon P Wang2009-10-1619-55/+70
| | | | llvm-svn: 84282
* Add test case for r84279Mon P Wang2009-10-161-0/+12
| | | | llvm-svn: 84280
* Move zext and sext casts fed by loads into the same block as theDan Gohman2009-10-162-2/+22
| | | | | | | load, to help SelectionDAG fold them into the loads, unless conditions are unfavorable. llvm-svn: 84271
* Parse PHI instruction with attached metadata.Devang Patel2009-10-161-0/+13
| | | | llvm-svn: 84264
* If there is not any llvm instruction associated with each lexical scope ↵Devang Patel2009-10-161-0/+33
| | | | | | encoded in debug info then create such scope on demand for variable info. llvm-svn: 84262
* Invert isSafeToGetMallocArraySize check because we return NULL when we don't ↵Victor Hernandez2009-10-161-0/+30
| | | | | | | | know the size. Thanks to Duncan Sands for noticing this bug. llvm-svn: 84260
* Force triple in tests.Daniel Dunbar2009-10-162-2/+2
| | | | llvm-svn: 84257
* Check that GVN performs this transform even if the callsDuncan Sands2009-10-161-14/+14
| | | | | | | themselves are not marked readonly, but only the called functions. llvm-svn: 84253
* Enable post-alloc scheduling for all ARM variants except for Thumb1.Evan Cheng2009-10-161-5/+5
| | | | llvm-svn: 84249
* MC: Tweak variable assignment diagnostics, and make reassignment of non-absoluteDaniel Dunbar2009-10-161-0/+17
| | | | | | variables and symbols invalid. llvm-svn: 84232
* MC: When parsing a variable reference, substitute absolute variables immediatelyDaniel Dunbar2009-10-162-9/+24
| | | | | | since they are allowed to be redefined. llvm-svn: 84230
* Branches must be the last instruction in a Thumb2 IT block. Approved by Evan ↵Sandeep Patel2009-10-151-0/+44
| | | | | | Cheng. llvm-svn: 84212
* Re-apply 84180 with the fixed test case.Sanjiv Gupta2009-10-151-3/+3
| | | | llvm-svn: 84195
* Move Blackfin intrinsics into the Target/Blackfin directory.Jakob Stoklund Olesen2009-10-151-0/+3
| | | | llvm-svn: 84194
* Make CodePlacementOpt align loops, rather than loop headers. TheDan Gohman2009-10-152-2/+13
| | | | | | | | | | header is just the entry block to the loop, and it needn't be at the top of the loop in the code layout. Remove the code that suppressed loop alignment for outer loops, so that outer loops are aligned. llvm-svn: 84158
* When LiveVariables is adding implicit-def to model "partial dead", add the ↵Evan Cheng2009-10-141-0/+15
| | | | | | earlyclobber marker if the superreg def has it. llvm-svn: 84153
* Make use of the result of the loads even though that means adding -instcombine.Nick Lewycky2009-10-141-5/+5
| | | | llvm-svn: 84125
* make instcombine's instruction sinking more aggressive in theChris Lattner2009-10-141-1/+37
| | | | | | presence of PHI nodes. llvm-svn: 84103
OpenPOWER on IntegriCloud