aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/InstCombine/InstCombineAddSub.cpp
Commit message (Expand)AuthorAgeFilesLines
* Preserve fast-math flags when folding (fsub x, (fneg y)) to (fadd x, y).Owen Anderson2013-07-301-4/+11
* Fix variable name.Owen Anderson2013-07-261-2/+2
* When InstCombine tries to fold away (fsub x, (fneg y)) into (fadd x, y), it isOwen Anderson2013-07-261-1/+13
* InstCombine: call FoldOpIntoSelect for all floating binops, not just fmulStephen Lin2013-07-201-3/+14
* Restore r181216, which was partially reverted in r182499.Stephen Lin2013-07-171-43/+0
* Use llvm::array_lengthof to replace sizeof(array)/sizeof(array[0]).Craig Topper2013-07-151-1/+2
* Don't use a potentially expensive shift if all we want is one set bit.Benjamin Kramer2013-07-111-1/+1
* In InstCombine{AddSub,MulDivRem} convert APFloat.isFiniteNonZero() && !APFloa...Michael Gottesman2013-06-261-1/+1
* [APFloat] Converted all references to APFloat::isNormal => APFloat::isFiniteN...Michael Gottesman2013-06-191-1/+1
* This is an update to a previous commit (r181216).Jean-Luc Duprat2013-05-221-0/+43
* InstCombine: (X ^ signbit) + C -> X + (signbit ^ C)David Majnemer2013-05-061-0/+5
* Provide InstCombines for the following 3 cases:Jean-Luc Duprat2013-05-061-0/+25
* Tidy up a bit. No functional change.Jim Grosbach2013-04-051-58/+60
* Fix a bug in fast-math fadd/fsub simplification. Shuxin Yang2013-03-251-10/+43
* Perform factorization as a last resort of unsafe fadd/fsub simplification.Shuxin Yang2013-03-141-5/+91
* Transform (sub 0, (zext bool to A)) to (sext bool to A) andPaul Redmond2013-01-211-0/+10
* Fix Casting BugDavid Greene2013-01-141-1/+3
* Move all of the header files which are involved in modelling the LLVM IRChandler Carruth2013-01-021-1/+1
* Make sure the buffer, which containas an instance of APFloat, has proper alig...Shuxin Yang2012-12-191-7/+5
* rdar://12801297 Shuxin Yang2012-12-181-0/+715
* Add back FoldOpIntoPhi optimizations with fix. Included test cases to help ca...Michael Ilseman2012-12-141-0/+4
* Revert "Restore the PHI optimization I accidently removed" temporarily sinceEric Christopher2012-12-131-4/+0
* Restore the PHI optimization I accidently removedMichael Ilseman2012-12-121-0/+4
* Remove trailing whitespaceMichael Ilseman2012-12-121-39/+39
* Remove redunant optimizations from InstCombine, instead call the appropriate ...Michael Ilseman2012-12-121-17/+5
* Move TargetData to DataLayout.Micah Villmow2012-10-081-1/+1
* Revert 'Fix a typo 'iff' => 'if''. iff is an abreviation of if and only if. S...Sylvestre Ledru2012-09-271-2/+2
* Fix a typo 'iff' => 'if'Sylvestre Ledru2012-09-271-2/+2
* Remove a instcombine transform that (no longer?) makes sense:Evan Cheng2012-06-261-5/+0
* canonicalize:Nuno Lopes2012-06-081-4/+5
* add a new pass to instrument loads and stores for run-time bounds checkingNuno Lopes2012-05-221-61/+0
* objectsize: add support for GEPs with non-constant indexesNuno Lopes2012-05-101-2/+3
* Add instcombine patterns for the following transformations:Chad Rosier2012-04-261-0/+14
* Always compute all the bits in ComputeMaskedBits.Rafael Espindola2012-04-041-5/+3
* InstCombine: Make OptimizePointerDifference more aggressive.Benjamin Kramer2012-02-201-27/+27
* InstCombine: Add a combine that turns (2^n)-1 ^ x back into (2^n)-1 - x iff x...Benjamin Kramer2011-12-241-0/+13
* InstCombine: Canonicalize (2^n)-1 - x into (2^n)-1 ^ x iff x is known to be s...Benjamin Kramer2011-12-241-0/+3
* land David Blaikie's patch to de-constify Type, with a few tweaks.Chris Lattner2011-07-181-4/+4
* add is always integer, thanks to Frits for noticing this.Chris Lattner2011-02-171-1/+1
* preserve NUW/NSW when transforming add x,xChris Lattner2011-02-171-2/+7
* When lowering an inbounds gep, the intermediate adds can haveChris Lattner2011-02-111-6/+3
* implement the first part of PR8882: when lowering an inboundsChris Lattner2011-02-101-8/+15
* A bunch of cleanups and simplifications using the new PatternMatch predicatesChris Lattner2011-02-101-176/+132
* one more instcombine variant that is needed to work with future changes,Chris Lattner2011-01-151-0/+9
* Add a generic expansion transform: A op (B op' C) -> (A op B) op' (A op C)Duncan Sands2010-12-221-6/+8
* Move Sub simplifications and additional Add simplifications out ofDuncan Sands2010-12-151-28/+4
* Rename SimplifyDistributed to the more meaningfull name SimplifyByFactorizing.Duncan Sands2010-11-231-2/+2
* Exploit distributive laws (eg: And distributes over Or, Mul over Add, etc) in aDuncan Sands2010-11-231-0/+5
* InstCombine: Implement X - A*-B -> X + A*B.Benjamin Kramer2010-11-221-0/+9
* Generalize the reassociation transform in SimplifyCommutative (now renamed toDuncan Sands2010-11-131-2/+2