aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/BranchFolding.cpp
AgeCommit message (Expand)Author
2010-01-25Rearrange handling of jump tables. Highlights:Chris Lattner
2009-12-24Change errs() to dbgs().David Greene
2009-12-16Initialize uninitialized variables.Bill Wendling
2009-12-16Initialize uninitialized variables.Bill Wendling
2009-12-15Revert these. They may have been causing 483_xalancbmk to fail:Bill Wendling
2009-12-11Don't try to move a MBB into the fall-through position if it's a landing pad orBill Wendling
2009-12-05Remove the target hook TargetInstrInfo::BlockHasNoFallThrough in favor ofDan Gohman
2009-12-03improve portability to avoid conflicting with std::next in c++'0x.Chris Lattner
2009-11-26Split tail duplication into a separate pass. This is needed to avoidBob Wilson
2009-11-24Refactor target hook for tail duplication as requested by Chris.Bob Wilson
2009-11-18There should be no need to keep renumbering blocks during tail duplication.Bob Wilson
2009-11-18Tail duplication still needs to iterate. Duplicating new instructions ontoBob Wilson
2009-11-18Add another statistic to measure code size due to tail duplication.Bob Wilson
2009-11-18Add statistics for tail duplication.Bob Wilson
2009-11-18Add a target hook to allow changing the tail duplication limit based on theBob Wilson
2009-11-17Remove a special case for tail merging that seems to be both broken andBob Wilson
2009-11-17Set MadeChange instead of MadeChangeThisIteration.Dan Gohman
2009-11-17Update a comment, now that tail duplication happens after other branchBob Wilson
2009-11-17Perform tail duplication only once, after tail merging is complete.Bob Wilson
2009-11-16Fix a comment.Bob Wilson
2009-11-16Fix some comments.Bob Wilson
2009-11-16Whitespace: be consistent with pointer syntax.Bob Wilson
2009-11-16Clean up whitespace.Bob Wilson
2009-11-13When optimizing for size, don't tail-merge unless it's likely to be aDan Gohman
2009-11-12Make the BranchFolderPass class local to BranchFolding.cpp.Dan Gohman
2009-11-12Minor code cleanups.Dan Gohman
2009-11-12Tail merge at any size when there are two potentials blocks and oneDan Gohman
2009-11-11Promote MergePotentialsElt and SameTailElt to be regular classesDan Gohman
2009-11-11Revert this line of 86871.Dan Gohman
2009-11-11Add support for tail duplication to BranchFolding, and extendDan Gohman
2009-11-11Fix indentation level.Dan Gohman
2009-11-11Whitespace cleanups.Dan Gohman
2009-11-11Prefix MBB numbers with "BB#" in debug output to make it clear whatDan Gohman
2009-11-11Minor code simplification.Dan Gohman
2009-11-10Remove an unused variable.Dan Gohman
2009-11-10Minor code simplification.Dan Gohman
2009-11-03Fix branch folding bug for indirect branches: for a block containing onlyBob Wilson
2009-10-30Don't delete blocks which have their address taken.Dan Gohman
2009-10-29Refactor complicated predicate into a separate function.Bob Wilson
2009-10-28Reimplement BranchFolding change to avoid tail merging for a 1 instructionBob Wilson
2009-10-28Revert r85346 change to control tail merging by CodeGenOpt::Level.Bob Wilson
2009-10-27Record CodeGen optimization level in the BranchFolding pass so that we canBob Wilson
2009-10-22Revert the main portion of r31856. It was causing BranchFoldingDan Gohman
2009-09-04Run branch folding if if-converter make some transformations.Evan Cheng
2009-09-03Funky indentation.Evan Cheng
2009-08-22Convert DOUT to DEBUG(errs()...).Bill Wendling
2009-08-18Make tail merging handle blocks with repeated predecessors correctly, andDan Gohman
2009-08-07Rewrite previous patch to follow Chris' stylisticDale Johannesen
2009-08-06Fix PR 4626, a crash in branch folding after OptimizeBlockDale Johannesen
2009-07-14llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable.Torok Edwin