aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/SimplifyCFG.cpp
AgeCommit message (Expand)Author
2011-05-22Add a parameter to ConstantFoldTerminator() that callers can use to ask it to...Frits van Bommel
2011-05-19Reapply r131605. This time with a fix, which is to use NoFolder.Devang Patel
2011-05-19revert 131605 to fix PR9946.Rafael Espindola
2011-05-19Use IRBuilder.Devang Patel
2011-05-19Use IRBuilder while simplifying unreachable.Devang Patel
2011-05-18Use IRBuilder while simplifying conditional branch.Devang Patel
2011-05-18Use IRBuilder while simplifying branch.Devang Patel
2011-05-18Use IRBuilder while simplifying return instruction.Devang Patel
2011-05-18Spread use of IRBuilder even more.Devang Patel
2011-05-18Use IRBuilder while simplifying switch instruction.Devang Patel
2011-05-18Use IRBuilder while simplifying unwind.Devang Patel
2011-05-18Use IRBuilder while simplifying terminator.Devang Patel
2011-05-18Use IRBuilder while simplifying unconditional branch.Devang Patel
2011-05-18Use IRBuilder while folding two entry PHINode.Devang Patel
2011-05-18Set up IRBuilder for use during simplification.Devang Patel
2011-05-17Preseve line numbers while simplifying CFG.Devang Patel
2011-05-14SimplifyCFG: Use ComputeMaskedBits to prune dead cases from switch instructions.Benjamin Kramer
2011-04-29SimplifyCFG: Expose phi node folding cost threshold as command line parameterPeter Collingbourne
2011-04-29SimplifyCFG: Add CostRemaining parameter to DominatesMergePointPeter Collingbourne
2011-04-29SimplifyCFG: Add Trunc, ZExt and SExt to the list of cheap instructions for p...Peter Collingbourne
2011-04-14rework FoldBranchToCommonDest to exit earlier when there is a bonusChris Lattner
2011-04-11comment cleanup, use moveBefore instead of removeFromParent+insertBefore.Chris Lattner
2011-04-07Do not let debug info interfer with branch folding.Devang Patel
2011-04-07While hoisting common code from if/else, hoist debug info intrinsics if they ...Devang Patel
2011-04-07Simplify. isIdenticalToWhenDefined() checks opcode.Devang Patel
2011-04-06While folding branch to a common destination into a predecessor, copy dbg val...Devang Patel
2011-03-30Remove PHINode::reserveOperandSpace(). Instead, add a parameter toJay Foad
2011-03-30(Almost) always call reserveOperandSpace() on newly created PHINodes.Jay Foad
2011-03-15PR9450: Make switch optimization in SimplifyCFG not dependent on the orderingEli Friedman
2011-03-09PR9420; an instruction before an unreachable is guaranteed not to have anyEli Friedman
2011-02-28Teach SimplifyCFG that (switch (select cond, X, Y)) is better expressed as a ...Frits van Bommel
2011-02-25Revert "SimplifyCFG: GEPs with just one non-constant index are also cheap."Benjamin Kramer
2011-02-24SimplifyCFG: GEPs with just one non-constant index are also cheap.Benjamin Kramer
2011-02-24SimplifyCFG: GEPs with constant indices are cheap enough to be executed uncon...Benjamin Kramer
2011-02-07SimplifyCFG: Track the number of used icmps when turning a icmp chain into a ...Benjamin Kramer
2011-02-03SimplifyCFG: Also transform switches that represent a range comparison but ar...Benjamin Kramer
2011-02-02SimplifyCFG: Turn switches into sub+icmp+branch if possible.Benjamin Kramer
2011-01-29Re-apply r124518 with fix. Watch out for invalidated iterator.Evan Cheng
2011-01-29Revert r124518. It broke Linux self-host.Evan Cheng
2011-01-29Re-commit r124462 with fixes. Tail recursion elim will now dup ret into uncon...Evan Cheng
2011-01-28Revert r124462. There are a few big regressions that I need to fix first.Evan Cheng
2011-01-28- Stop simplifycfg from duplicating "ret" instructions into unconditionalEvan Cheng
2011-01-11Factor the actual simplification out of SimplifyIndirectBrOnSelect and into a...Frits van Bommel
2010-12-18simplify this a bit.Chris Lattner
2010-12-17SimplifyCFG: Ranges can be larger than 64 bits. Fixes Release-selfhost build.Benjamin Kramer
2010-12-17improve switch formation to handle small range Chris Lattner
2010-12-15make qsort predicate more conformant by returning 0 for equal values.Chris Lattner
2010-12-14 - Insert new instructions before DomBlock's terminator,Chris Lattner
2010-12-14fix two significant issues with FoldTwoEntryPHINode:Chris Lattner
2010-12-14remove the instsimplify logic I added in r121754. It is apparentlyChris Lattner