summaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/SimplifyCFG.cpp
AgeCommit message (Expand)AuthorFilesLines
2012-01-05Revert r56315. When the instruction to speculate is a load, thisDan Gohman1-26/+2
2011-12-28Demystify this comment.Nick Lewycky1-5/+16
2011-12-27Use false not zero, as a bool.Nick Lewycky1-2/+2
2011-12-27Teach simplifycfg to recompute branch weights when merging some branches, andNick Lewycky1-0/+67
2011-12-26Update the branch weight metadata when reversing the order of a branch.Nick Lewycky1-4/+1
2011-12-26Sort includes, canonicalize whitespace, fix typos. No functionality change.Nick Lewycky1-12/+12
2011-12-21Make some intrinsics safe to speculatively execute.Nick Lewycky1-0/+1
2011-12-17Revert r146822 at Pete Cooper's request as it broke clang self hosting.Kevin Enderby1-42/+0
2011-12-17SimplifyCFG now predicts some conditional branches to true or false depending...Pete Cooper1-0/+42
2011-12-14Move Instruction::isSafeToSpeculativelyExecute out of VMCore andDan Gohman1-2/+2
2011-09-05Delete trivial landing pads that just continue unwinding the caughtDuncan Sands1-0/+49
2011-08-26Address review comments.Benjamin Kramer1-9/+8
2011-08-26SimplifyCFG: If we have a PHI node that can evaluate to NULL and do a load or...Benjamin Kramer1-0/+69
2011-08-16I think there was some confusion about what I meant. :-) Replacing the comment.Bill Wendling1-1/+4
2011-08-16After talking with Bill, it seems like the LandingPad handling here is likelyEli Friedman1-4/+1
2011-08-16Minor comment fixes.Eli Friedman1-1/+1
2011-08-15Update SimplifyCFG for atomic operations.Eli Friedman1-10/+26
2011-07-18land David Blaikie's patch to de-constify Type, with a few tweaks.Chris Lattner1-1/+1
2011-07-15Convert CallInst and InvokeInst APIs to use ArrayRef.Jay Foad1-4/+2
2011-06-30Add r134057 back, but splice the predecessor after the successors phiRafael Espindola1-1/+1
2011-06-29Temporarily revert r134057: "Let simplify cfg simplify bb with only debug and Chad Rosier1-1/+1
2011-06-29Let simplify cfg simplify bb with only debug and lifetime intrinsics.Rafael Espindola1-1/+1
2011-06-18Fix PR10103: Less code for enum type translation.Hans Wennborg1-0/+74
2011-06-04If the block that we're threading through is jumped to by an indirect branch,Bill Wendling1-1/+3
2011-05-22Add a parameter to ConstantFoldTerminator() that callers can use to ask it to...Frits van Bommel1-1/+1
2011-05-19Reapply r131605. This time with a fix, which is to use NoFolder.Devang Patel1-30/+34
2011-05-19revert 131605 to fix PR9946.Rafael Espindola1-36/+31
2011-05-19Use IRBuilder.Devang Patel1-2/+2
2011-05-19Use IRBuilder while simplifying unreachable.Devang Patel1-7/+8
2011-05-18Use IRBuilder while simplifying conditional branch.Devang Patel1-31/+36
2011-05-18Use IRBuilder while simplifying branch.Devang Patel1-12/+13
2011-05-18Use IRBuilder while simplifying return instruction.Devang Patel1-11/+13
2011-05-18Spread use of IRBuilder even more.Devang Patel1-10/+12
2011-05-18Use IRBuilder while simplifying switch instruction.Devang Patel1-15/+18
2011-05-18Use IRBuilder while simplifying unwind.Devang Patel1-7/+9
2011-05-18Use IRBuilder while simplifying terminator.Devang Patel1-4/+7
2011-05-18Use IRBuilder while simplifying unconditional branch.Devang Patel1-6/+11
2011-05-18Use IRBuilder while folding two entry PHINode.Devang Patel1-6/+8
2011-05-18Set up IRBuilder for use during simplification.Devang Patel1-0/+3
2011-05-17Preseve line numbers while simplifying CFG.Devang Patel1-6/+16
2011-05-14SimplifyCFG: Use ComputeMaskedBits to prune dead cases from switch instructions.Benjamin Kramer1-1/+36
2011-04-29SimplifyCFG: Expose phi node folding cost threshold as command line parameterPeter Collingbourne1-1/+6
2011-04-29SimplifyCFG: Add CostRemaining parameter to DominatesMergePointPeter Collingbourne1-9/+38
2011-04-29SimplifyCFG: Add Trunc, ZExt and SExt to the list of cheap instructions for p...Peter Collingbourne1-0/+3
2011-04-14rework FoldBranchToCommonDest to exit earlier when there is a bonusChris Lattner1-39/+30
2011-04-11comment cleanup, use moveBefore instead of removeFromParent+insertBefore.Chris Lattner1-9/+5
2011-04-07Do not let debug info interfer with branch folding.Devang Patel1-0/+6
2011-04-07While hoisting common code from if/else, hoist debug info intrinsics if they ...Devang Patel1-8/+18
2011-04-07Simplify. isIdenticalToWhenDefined() checks opcode.Devang Patel1-4/+2
2011-04-06While folding branch to a common destination into a predecessor, copy dbg val...Devang Patel1-4/+17