summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Cast unused parameter to void.Hans Wennborg2011-06-041-0/+1
| | | | llvm-svn: 132641
* If the block that we're threading through is jumped to by an indirect branch,Bill Wendling2011-06-042-1/+72
| | | | | | | | | | | | then we don't want to set the destination in the indirect branch to the destination. This is because the indirect branch needs its destinations to have had their block addresses taken. This isn't so of the new critical edge that's split during this process. If it turns out that the destination block has only one predecessor, and that being a BB with an indirect branch, then it won't be marked as 'used' and may be removed. PR10072 llvm-svn: 132638
* Drop a RecordKeeper reference that wasn't necessary.Jakob Stoklund Olesen2011-06-043-10/+7
| | | | llvm-svn: 132636
* Add a testcase to demonstrate the problem where phi translation isDan Gohman2011-06-041-0/+27
| | | | | | ignored for clobbering partial-alias loads. llvm-svn: 132633
* Reapply r131781, now that the GVN bug with partially-aliasing loadsDan Gohman2011-06-043-2/+143
| | | | | | is disabled. llvm-svn: 132632
* Disable the main feature of 130180, the elimination of loads that areDan Gohman2011-06-042-12/+18
| | | | | | | | | | redundant with partially-aliasing loads. When computing what portion of a clobbering load value is needed, it doesn't consider phi-translation which may have occurred between the clobbing load and the redundant load. llvm-svn: 132631
* Remove this test, which should have been reverted along with r131781.Dan Gohman2011-06-041-131/+0
| | | | llvm-svn: 132628
* Use processor name in the target triple. This fixes PowerPC64 to generateRoman Divacky2011-06-041-3/+2
| | | | | | 64bit code for example. llvm-svn: 132627
* Revert r131781 again. Apparently there is more going on here.Dan Gohman2011-06-042-12/+2
| | | | llvm-svn: 132625
* Silence compiler warnings.Jakob Stoklund Olesen2011-06-042-6/+10
| | | | llvm-svn: 132624
* Teach TableGen to evaluate DAG expressions as set operations.Jakob Stoklund Olesen2011-06-045-1/+593
| | | | | | | | | | | | | | | | | A TableGen backend can define how certain classes can be expanded into ordered sets of defs, typically by evaluating a specific field in the record. The SetTheory class can then evaluate DAG expressions that refer to these named sets. A number of standard set and list operations are predefined, and the backend can add more specialized operators if needed. The -print-sets backend is used by SetTheory.td to provide examples. This is intended to simplify how register classes are defined: def GR32_NOSP : RegisterClass<"X86", [i32], 32, (sub GR32, ESP)>; llvm-svn: 132621
* Fold assert-only-used variable into the assert.Nick Lewycky2011-06-041-2/+1
| | | | llvm-svn: 132620
* Missing include of climits in the new BranchProbability pass.Andrew Trick2011-06-041-0/+1
| | | | llvm-svn: 132616
* New BranchProbabilityInfo analysis. Patch by Jakub Staszak!Andrew Trick2011-06-045-0/+419
| | | | | | | | | | | BranchProbabilityInfo provides an interface for IR passes to query the likelihood that control follows a CFG edge. This patch provides an initial implementation of static branch predication that will populate BranchProbabilityInfo for branches with no external profile information using very simple heuristics. It currently isn't hooked up to any external profile data, so static prediction does all the work. llvm-svn: 132613
* Reapply r131781 (revert r131809), now that some BasicAA shortcomingsDan Gohman2011-06-043-2/+143
| | | | | | it exposed are fixed. llvm-svn: 132611
* Fix BasicAA's recursion detection so that it doesn't pessimizeDan Gohman2011-06-043-37/+95
| | | | | | | | | queries in the case of a DAG, where a query reaches a node visited earlier, but it's not on a cycle. This avoids MayAlias results in cases where BasicAA is expected to return MustAlias or PartialAlias in order to protect TBAA. llvm-svn: 132609
* Reapply 132424 with fixes. This fixes PR10068.Stuart Hastings2011-06-038-18/+153
| | | | | | rdar://problem/5993888 llvm-svn: 132606
* Fix some tests that depend on register allocation.Jakob Stoklund Olesen2011-06-034-12/+12
| | | | llvm-svn: 132602
* Blackfin always uses a reserved call frame.Jakob Stoklund Olesen2011-06-033-2/+7
| | | | | | | Materializing the stack pointer update before a call requires a scratch register that may not be available. llvm-svn: 132601
* Another possible bug. Stopgap until we can autogenerate tables andEric Christopher2011-06-032-6/+11
| | | | | | | | constraint lengths. Part of rdar://9037836 and rdar://9119939 llvm-svn: 132598
* Testcase for llvm-gcc commit r132591.Eric Christopher2011-06-031-0/+11
| | | | | | Part of rdar://9037836 and rdar://9119939 llvm-svn: 132592
* Fix an off by one error.Eric Christopher2011-06-032-2/+10
| | | | | | Part of rdar://9037836 and rdar://9119939 llvm-svn: 132590
* Remove testcase. It's problematic for the buildbots.Bill Wendling2011-06-031-93/+0
| | | | llvm-svn: 132589
* Switch AllocationOrder to using RegisterClassInfo instead of a BitVectorJakob Stoklund Olesen2011-06-036-23/+19
| | | | | | | | | of reserved registers. Use RegisterClassInfo in RABasic as well. This slightly changes som allocation orders because RegisterClassInfo puts CSR aliases last. llvm-svn: 132581
* Preserve the original ordering when a CSR has multiple aliases.Jakob Stoklund Olesen2011-06-031-2/+14
| | | | | | | | Previously, these aliases would be ordered alphabetically. (BH, BL) Print out the computed allocation orders. llvm-svn: 132580
* When merging MustAlias and PartialAlias, chose PartialAlias insteadDan Gohman2011-06-032-10/+60
| | | | | | of conservatively choosing MayAlias. llvm-svn: 132579
* Use IRBuilder, preserve line numbers.Devang Patel2011-06-031-4/+6
| | | | llvm-svn: 132578
* Accomodate front-ends which use private instead of internal here.Bill Wendling2011-06-031-1/+1
| | | | llvm-svn: 132575
* Make the Uv constraint a memory operand. This doesn't solve theEric Christopher2011-06-032-0/+11
| | | | | | | | addressing mode problem mentioned in r132559. Backend part of rdar://9037836 and part of rdar://9119939 llvm-svn: 132561
* Add a TODO about memory operands.Eric Christopher2011-06-031-1/+5
| | | | llvm-svn: 132559
* Test commit.Hans Wennborg2011-06-031-2/+2
| | | | llvm-svn: 132558
* A typedef's context is not the same as type's context. It is the context of ↵Devang Patel2011-06-032-3/+4
| | | | | | typedef decl itself. Use extra parameter to communicate this to DIBuilder. llvm-svn: 132556
* Revert name change from r132533. Lower case naming was intended per style ↵Chad Rosier2011-06-033-7/+7
| | | | | | guidelines. llvm-svn: 132555
* Fix wrong usages of CTR/MCTR where CTR8/MCTR8 was meant.Roman Divacky2011-06-035-6/+16
| | | | | | | | | | | | | - Check for MTCTR8 in addition to MTCTR when looking up a hazard. - When lowering an indirect call use CTR8 when targeting 64bit. - Introduce BCTR8 that uses CTR8 and use it on 64bit when expanding ISD::BRIND. The last change fixes PR8487. With those changes, we are able to compile a running "ls" and "sh" on FreeBSD/PowerPC64. llvm-svn: 132552
* singed int causes signed extension, which contradicts the intention to pick upZhongxing Xu2011-06-031-1/+1
| | | | | | integers with high 32 bits being zero. llvm-svn: 132538
* Rework the logic to not rely on undefined behaviour (1LL << 64). Also simplify.Nick Lewycky2011-06-031-8/+3
| | | | llvm-svn: 132537
* Bail on unswitching a switch statement for a case with a critical edge. We nameNick Lewycky2011-06-032-1/+33
| | | | | | | which edge to split by pred/succ pair, which means that we can end up splitting the wrong edge (by case value) in the switch statement entirely. Fixes PR10031! llvm-svn: 132535
* Whitespace and other cleanup. Functionallity unchanged.Chad Rosier2011-06-034-15/+10
| | | | llvm-svn: 132533
* Treat Win64 EH as a DWARF EH scheme. For GCC-style exceptions, the layout ofCharles Davis2011-06-031-1/+2
| | | | | | | the handler's data area is similar to a DWARF-format LSDA. (It is, in fact, a 32-bit pointer to the personality routine followed by the DWARF LSDA.) llvm-svn: 132532
* Corrections and additional information for "Creating and LLVM Project"Andrew Trick2011-06-031-6/+34
| | | | | | documentation. This should now reflect the current state of LLVM Makefiles. llvm-svn: 132527
* whitespaceAndrew Trick2011-06-031-10/+10
| | | | llvm-svn: 132526
* Add ARM fast-isel support for materializing the address of a global in cases ↵Eli Friedman2011-06-032-4/+44
| | | | | | | | where the global uses an indirect symbol. rdar://9431157 llvm-svn: 132522
* Basic PassManager diagnostics.Andrew Trick2011-06-031-1/+11
| | | | | | | | Added asserts whenever attempting to use a potentially uninitialized pass. This helps people trying to develop a new pass and people trying to understand the bug reports filed by the former people. llvm-svn: 132520
* whitespaceAndrew Trick2011-06-031-3/+3
| | | | llvm-svn: 132519
* Test case pasto (failed when run with IR verifier).Andrew Trick2011-06-021-2/+2
| | | | llvm-svn: 132516
* Avoid calling TRI->getAllocatableSet in RAFast.Jakob Stoklund Olesen2011-06-022-9/+23
| | | | | | | | | | | | | | When compiling a program with lots of small functions like 483.xalancbmk, this makes RAFast 11% faster. Add some comments to clarify the difference between unallocatable and reserved registers. It's quite subtle. The fast register allocator depends on EFLAGS' not being allocatable on x86. That way it can completely avoid tracking liveness, and it won't mind when there are multiple uses of a single def. llvm-svn: 132514
* Have LowerOperandForConstraint handle multiple character constraints.Eric Christopher2011-06-0211-17/+35
| | | | | | Part of rdar://9119939 llvm-svn: 132510
* Flag unallocatable register classes instead of giving them emptyJakob Stoklund Olesen2011-06-023-39/+8
| | | | | | allocation orders. llvm-svn: 132509
* Make it possible to have unallocatable register classes.Jakob Stoklund Olesen2011-06-027-16/+32
| | | | | | | | | | | | | | | Some register classes are only used for instruction operand constraints. They should never be used for virtual registers. Previously, those register classes were given an empty allocation order, but now you can say 'let isAllocatable=0' in the register class definition. TableGen calculates if a register is part of any allocatable register class, and makes that information available in TargetRegisterDesc::inAllocatableClass. The goal here is to eliminate use cases for overriding allocation_order_* methods. llvm-svn: 132508
* Preserve line number information while converting Invoke into a Call.Devang Patel2011-06-021-0/+1
| | | | llvm-svn: 132505
OpenPOWER on IntegriCloud