aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
AgeCommit message (Expand)AuthorFilesLines
2012-11-30Fix non-determinism introduced in r168970 and pointed out by Duncan.Chandler Carruth1-5/+13
2012-11-30Rearrange the comments, control flow, and variable names; noChandler Carruth1-7/+14
2012-11-30Fix logic to determine whether to turn a switch into a lookup table. WhenEvan Cheng1-6/+13
2012-11-16SimplifyCFG: Don't assume non-null ScalarTargetTransformInfo.Hans Wennborg1-1/+2
2012-11-15misspellAndrew Trick1-3/+3
2012-11-15whitespaceAndrew Trick1-4/+4
2012-11-07Only do switch-to-lookup table transformation when TargetTransformInfoHans Wennborg1-1/+2
2012-11-01Revert the series of commits starting with r166578 which introduced theChandler Carruth1-8/+4
2012-10-31Remove fixme about unreachable cases from SwitchToLookupTableHans Wennborg1-2/+0
2012-10-31Address Duncan's comments on r167121.Hans Wennborg1-3/+4
2012-10-31Address Duncan's comments on r167115Hans Wennborg1-48/+42
2012-10-31Fix false -> NULL conversion from r167115 spotted by Benjamin Kramer.Hans Wennborg1-1/+1
2012-10-31Do simple constant propagation in lookup table formation for switchesHans Wennborg1-15/+98
2012-10-30Use TargetTransformInfo to control switch-to-lookup table transformationHans Wennborg1-6/+15
2012-10-29Remove a wrapper around getIntPtrType added to GVN by Hal in commit 166624 (theDuncan Sands1-1/+1
2012-10-25Also optimize large switch statements.Jakob Stoklund Olesen1-22/+20
2012-10-24Add in support for getIntPtrType to get the pointer type based on the address...Micah Villmow1-5/+9
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