aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/InstructionCombining.cpp
AgeCommit message (Expand)Author
2010-01-04move instcombine to its own library, it's past time.Chris Lattner
2010-01-04implement an instcombine xform needed by clang's codegenChris Lattner
2010-01-03pull my debug hooks out, I'm done with this xform for now.Chris Lattner
2010-01-03generalize the previous transformation to handle indexing intoChris Lattner
2010-01-03Cleanup.Nick Lewycky
2010-01-02teach instcombine to optimize idioms like A[i]&42 == 0. ThisChris Lattner
2010-01-02Teach the table lookup optimization to generate range comparesChris Lattner
2010-01-02use enums for the over/underdefined markers for clarity. SwitchChris Lattner
2010-01-02remove the random sampling framework, which is not maintained anymore.Chris Lattner
2010-01-02Fix logic error in previous commit. The != case needs to become an or, not anNick Lewycky
2010-01-02Optimize pointer comparison into the typesafe form, now that the backends willNick Lewycky
2010-01-02Generalize the previous xform to handle cases where exactlyChris Lattner
2010-01-02fix a miscompilation I introduced of cdecl with a late change.Chris Lattner
2010-01-02enhance the compare/load/index optimization to work on *any* loadChris Lattner
2010-01-02enhance the previous optimization to work with fcmp in additionChris Lattner
2010-01-02Teach instcombine to fold compares of loads from constantChris Lattner
2010-01-02remove the instcombine transformations that are inserting nastyChris Lattner
2010-01-01add a simple instcombine xform, simplify another one to use hasAllZeroIndices()Chris Lattner
2010-01-01generalize the pointer difference optimization to handleChris Lattner
2010-01-01teach instcombine to optimize pointer difference idioms involving constantChris Lattner
2010-01-01use 'match' to simplify some code.Chris Lattner
2010-01-01implement the transform requested in PR5284Chris Lattner
2010-01-01add missing line.Chris Lattner
2010-01-01add a few trivial instcombines for llvm.powi.Chris Lattner
2009-12-21Add suggested parentheses.Daniel Dunbar
2009-12-21give instcombine some helper functions for matching MIN and MAX, andChris Lattner
2009-12-21enhance x-(-A) -> x+A to preserve NUW/NSW.Chris Lattner
2009-12-21Optimize all cases of "icmp (X+Cst), X" to something simpler. This triggersChris Lattner
2009-12-19fix PR5827 by disabling the phi slicing transformation in a caseChris Lattner
2009-12-18Optimize icmp of null and select of two constants even if the select hasEli Friedman
2009-12-17Allow instcombine to combine "sext(a) >u const" to "a >u trunc(const)".Eli Friedman
2009-12-17Make the ptrtoint comparison simplification work if one side is a global.Eli Friedman
2009-12-17Slightly generalize transformation of memmove(a,a,n) so that it also appliesEli Friedman
2009-12-15Remove isPod() from DenseMapInfo, splitting it out to its ownChris Lattner
2009-12-05Generalize this optimization to work on equality comparisons between any twoNick Lewycky
2009-11-29add testcases for the foo_with_overflow op xforms added recently andChris Lattner
2009-11-29Implement PR5634.Chris Lattner
2009-11-27factor some logic out of instcombine into a new SimplifyAddInst method.Chris Lattner
2009-11-27factor some instcombine simplifications for getelementptr out to a new Chris Lattner
2009-11-26fix crash on Transforms/InstCombine/intrinsics.ll introduced by r89970 Chris Lattner
2009-11-26Fix PR5471 by removing an instcombine xform. Some pieces of the codeChris Lattner
2009-11-26implement a bunch of xforms for overflow intrinsics, based on a patchChris Lattner
2009-11-23Reapply r88830 with a bugfix: this transform only applies to icmp eq/ne. ThisNick Lewycky
2009-11-20Fix PR5563, an expensive checks failure when running onDuncan Sands
2009-11-16Fix an expensive-checks error.David Greene
2009-11-15Revert r88830 and r88831 which appear to have caused a selfhost buildbot someNick Lewycky
2009-11-15Teach instcombine to look for booleans in wider integers when it encounters aNick Lewycky
2009-11-10clarify logic.Chris Lattner
2009-11-10Add brackets to make gcc-4.4 happy.Duncan Sands
2009-11-10unify the code that determines whether it is a good idea to change the typeChris Lattner