aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/InstructionCombining.cpp
AgeCommit message (Expand)Author
2008-03-25Handle a special case xor undef, undef -> 0. Technically this should be trans...Evan Cheng
2008-03-24Transform (zext (or (icmp), (icmp))) to (or (zext (cimp), (zext icmp))) if at...Evan Cheng
2008-03-21Fix the build for gcc-4.2.Duncan Sands
2008-03-21Teach masked value is zero about add and sub, and use MVIZ toChris Lattner
2008-03-14The inst combining of inttoptr into GEP with one index was using the bit size ofBill Wendling
2008-03-12Reimplement the parameter attributes support, phase #1. hilights:Chris Lattner
2008-03-11Skip functions that return multiple values.Devang Patel
2008-03-09Don't eliminate blocks that are only reachable by unwind_to.Nick Lewycky
2008-03-06Don't try to simplify urem and srem using arithmetic rules that don't workNick Lewycky
2008-02-29Folding or(fcmp,fcmp) only works if the operands of the fcmps are the same fp...Chris Lattner
2008-02-26De-tabify.Bill Wendling
2008-02-22Split ParameterAttributes.h, putting the complicatedDale Johannesen
2008-02-22Fixed a typo.Zhou Sheng
2008-02-20Fix newly-introduced 4.3 warningsAnton Korobeynikov
2008-02-20Make Transforms to be 4.3 warnings-cleanAnton Korobeynikov
2008-02-19Expand ParameterAttributes to 32 bits (in preparationDale Johannesen
2008-02-19fdiv/frem of undef can produce undef, because the undef operand Chris Lattner
2008-02-18Correctly fold divide-by-constant, even when faced with overflow.Nick Lewycky
2008-02-18Transforming -A + -B --> -(A + B) isn't safe for FP, thanksChris Lattner
2008-02-18optimize away stackrestore calls that have no intervening alloca or call.Chris Lattner
2008-02-17Fold (-x + -y) -> -(x+y) which promotes better association, fixingChris Lattner
2008-02-13Rename APInt's isPositive to isNonNegative, to reflect what itDan Gohman
2008-02-05Fix a bug compiling PR1978 (perhaps not the only one though) whichChris Lattner
2008-02-03There are some cases where icmp(add) can be folded into a new icmp. Handle them.Nick Lewycky
2008-02-03Hack on vectors too.Nick Lewycky
2008-02-03Fold away one multiply in instcombine. This would normally be caught inNick Lewycky
2008-01-29eliminate additions of 0.0 when they are obviously dead. This has to be care...Chris Lattner
2008-01-28Handle some more combinations of extend and icmp. Fixes PR1940.Nick Lewycky
2008-01-28Fix PR1932 by disabling an xform invalid for fdiv.Chris Lattner
2008-01-27Fold fptrunc(add (fpextend x), (fpextend y)) -> add(x,y), as GCC does.Chris Lattner
2008-01-22Enable the fix I just checked in, silly me.Nick Lewycky
2008-01-22Multiply can be evaluated in a different type, so long as the target type hasNick Lewycky
2008-01-14I noticed that the trampoline straightening transformation couldDuncan Sands
2008-01-14Turn a memcpy from a double* into a load/store of double instead ofChris Lattner
2008-01-13factor memcpy/memmove simplification out to its own SimplifyMemTransfer Chris Lattner
2008-01-13simplify some code. If we can infer alignment for source and dest that are Chris Lattner
2008-01-13simplify some code by adding a InsertBitCastBefore method,Chris Lattner
2008-01-13Fix PR1907, a nasty miscompilation because instcombine didn'tChris Lattner
2008-01-13When turning a call to a bitcast function into a direct call,Duncan Sands
2008-01-08Implement PR1795, an instcombine hack for forming GEPs with integer pointer a...Chris Lattner
2008-01-07Small cleanup for handling of type/parameter attributeDuncan Sands
2008-01-06The transform that tries to turn calls to bitcast functions intoDuncan Sands
2008-01-06When transforming a call to a bitcast function intoDuncan Sands
2008-01-05remove a couple more unsafe xforms in the face of overflow.Chris Lattner
2008-01-05remove the (x-y) < 0 comparison xform, it miscompiles Chris Lattner
2007-12-29Remove attribution from file headers, per discussion on llvmdev.Chris Lattner
2007-12-29Disable null pointer folding transforms for non-generic address spaces. This ...Christopher Lamb
2007-12-28Repair a transform that Chris noticed a bug in. Thanks to Nicholas for point...Owen Anderson
2007-12-28disable this instcombine xform, it miscompiles:Chris Lattner
2007-12-22implement InstCombine/shift-trunc-shift.ll. This allowsChris Lattner