summaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/SimplifyCFG.cpp
AgeCommit message (Expand)AuthorFilesLines
2012-10-14Simplify code. No functionality change.Benjamin Kramer1-5/+3
2012-10-11PGO: create metadata for switch only if it has more than one targets.Manman Ren1-1/+1
2012-10-08Move TargetData to DataLayout.Micah Villmow1-18/+18
2012-10-04SimplifyCFG: Enhance the "remove CFG edge that leads to null pointer derefere...Benjamin Kramer1-2/+3
2012-10-01SimplifyCFG: Don't crash when forming a switch bitmap with an undef default v...Benjamin Kramer1-2/+5
2012-09-30SimplifyCFG: Enumerating all predecessors of a BB can be expensive (switches)...Benjamin Kramer1-3/+7
2012-09-27Fix a integer overflow in SimplifyCFG's look up table formation logic.Benjamin Kramer1-0/+4
2012-09-26Address Duncan's comments on r164684:Hans Wennborg1-9/+5
2012-09-26Address Duncan's comments on r164682:Hans Wennborg1-6/+4
2012-09-26SimplifyCFG: Make the switch-to-lookup table transformation store theHans Wennborg1-12/+89
2012-09-26SimplifyCFG: Refactor the switch-to-lookup table transformation byHans Wennborg1-72/+115
2012-09-20SimplifyCFG: sink common codes from IF, ELSE blocks down to END block.Manman Ren1-0/+173
2012-09-19SimplifyCFG: Don't generate invalid code for switch used to initializeHans Wennborg1-9/+8
2012-09-18PGO: preserve branch-weight metadata when simplifying Switch to a sub, an icmpManman Ren1-1/+38
2012-09-17PGO: preserve branch-weight metadata when simplifying SwitchManman Ren1-0/+15
2012-09-17PGO: preserve branch-weight metadata when simplifying SwitchOnSelect.Manman Ren1-5/+28
2012-09-17PGO: preserve branch-weight metadata when simplifying two branches with a commonManman Ren1-0/+27
2012-09-17Fix a few vars that can end up being used without initialization.Axel Naumann1-1/+1
2012-09-15PGO: preserve branch-weight metadata when simplifying two branches with a commonManman Ren1-111/+42
2012-09-14PGO: preserve branch-weight metadata when simplifying a switch with a singleManman Ren1-0/+19
2012-09-14Try to fix the bots by detecting inconsistant branch-weight metadata.Manman Ren1-4/+10
2012-09-14PGO: preserve branch-weight metadata when merging two switches whereManman Ren1-5/+12
2012-09-11SimplifyCFG: preserve branch-weight metadata when creating a new switch fromManman Ren1-81/+45
2012-09-10Fix style issues from r163302 pointed out by Evan.Hans Wennborg1-18/+15
2012-09-08Remove an incorrect assert during branch weight propagation.Andrew Trick1-1/+0
2012-09-07SimplifyCFG: ValidLookupTableConstant should be staticHans Wennborg1-1/+1
2012-09-06Fix switch_to_lookup_table.ll test from r163302.Hans Wennborg1-5/+6
2012-09-06Build lookup tables for switches (PR884)Hans Wennborg1-0/+286
2012-09-05Stop casting away const qualifier needlessly.Roman Divacky1-2/+2
2012-08-30testMichael Ilseman1-2/+2
2012-08-29Preserve branch profile metadata during switch formation.Andrew Trick1-0/+154
2012-08-29whitespaceAndrew Trick1-168/+168
2012-07-23Fix a typo (the the => the)Sylvestre Ledru1-1/+1
2012-07-15Move llvm/Support/MDBuilder.h to llvm/MDBuilder.h, to live withChandler Carruth1-1/+1
2012-07-13Make helper functions static.Benjamin Kramer1-1/+1
2012-07-02Revert "IntRange:" as it appears to be breaking self hosting.Eric Christopher1-85/+148
2012-07-02IntRange:Stepan Dyatkovskiy1-148/+85
2012-06-29Move llvm/Support/IRBuilder.h -> llvm/IRBuilder.hChandler Carruth1-7/+7
2012-06-24Remove dyn_cast + dereference pattern by replacing it with a cast and changingNick Lewycky1-3/+3
2012-06-13SimplifyCFG: fold unconditional branch to its predecessor if profitable.Manman Ren1-24/+180
2012-05-26SimplifyCFG: Turn the ad-hoc std::pair that represents switch cases into an e...Benjamin Kramer1-39/+54
2012-05-26Add support for branch weight metadata to MDBuilder and use it in various pla...Benjamin Kramer1-6/+5
2012-04-04Always compute all the bits in ComputeMaskedBits.Rafael Espindola1-1/+1
2012-03-11llvm::SwitchInstStepan Dyatkovskiy1-13/+13
2012-03-08Taken into account Duncan's comments for r149481 dated by 2nd Feb 2012:Stepan Dyatkovskiy1-35/+39
2012-02-06[unwind removal] We no longer have 'unwind' instructions being generated, soBill Wendling1-52/+3
2012-02-01SwitchInst refactoring.Stepan Dyatkovskiy1-28/+35
2012-01-25Gracefully degrade precision in branch probability numbers.Nick Lewycky1-17/+72
2012-01-19Actually, this code handles wrapped sets just fine. Noticed by inspection.Nick Lewycky1-3/+1
2012-01-05Fix SpeculativelyExecuteBB to either speculate all or none of the phisDan Gohman1-140/+148