aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
AgeCommit message (Expand)AuthorFilesLines
2016-08-05InstCombine: Replace some never-null pointers with references. NFCJustin Bogner1-5/+5
2016-07-19[InstCombine] fold add(zext(xor X, C), C) --> sext X when C is INT_MIN in the...Sanjay Patel1-0/+10
2016-07-16[InstCombine] allow X + signbit --> X ^ signbit for vector splatsSanjay Patel1-3/+10
2016-06-26Apply clang-tidy's modernize-loop-convert to most of lib/Transforms.Benjamin Kramer1-6/+3
2016-06-22Delete more dead code.Rafael Espindola1-22/+0
2016-02-18Remove uses of builtin comma operator.Richard Trieu1-5/+12
2016-02-02Fix Clang-tidy readability-redundant-control-flow warnings; other minor fixes.Eugene Zelenko1-2/+0
2016-02-01function names start with a lowercase letter; NFCSanjay Patel1-15/+15
2015-12-21[InstCombine] Fix indentation. NFC.Craig Topper1-2/+2
2015-11-04Fix some Clang-tidy modernize warnings, other minor fixes.Eugene Zelenko1-14/+12
2015-09-09don't repeat function names in comments; NFCSanjay Patel1-1/+1
2015-07-14[InstCombine] Generalize sub of selects optimization to all BinaryOperatorsDavid Majnemer1-26/+0
2015-06-23Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC)Alexander Kornienko1-1/+1
2015-06-23[InstCombine] Optimize subtract of selects into a select of a subDavid Majnemer1-0/+26
2015-06-19Fixed/added namespace ending comments using clang-tidy. NFCAlexander Kornienko1-1/+1
2015-05-14[ValueTracking] refactor: extract method haveNoCommonBitsSetJingyue Wu1-14/+2
2015-04-30InstCombine: Move Sub->Xor rule from SimplifyDemanded to InstCombineMatthias Braun1-0/+13
2015-03-10DataLayout is mandatory, update the API to reflect it with references.Mehdi Amini1-44/+44
2015-01-22[PM] Rename InstCombine.h to InstCombineInternal.h in preparation forChandler Carruth1-1/+1
2015-01-07Analysis: Reformulate WillNotOverflowUnsignedAdd for reusabilityDavid Majnemer1-17/+3
2015-01-04[PM] Split the AssumptionTracker immutable pass into two separate APIs:Chandler Carruth1-6/+6
2014-12-31InstCombine: fsub nsz 0, X ==> fsub nsz -0.0, XSanjay Patel1-0/+8
2014-12-26InstCombe: Infer nsw for multipliesDavid Majnemer1-87/+38
2014-12-19use -0.0 when creating an fneg instructionSanjay Patel1-1/+1
2014-12-18fix formatting; NFCSanjay Patel1-8/+4
2014-12-17Strength reduce intrinsics with overflow into regular arithmetic operations i...Erik Eckstein1-0/+45
2014-11-03InstCombine: Combine (X | Y) - X to (~X & Y)David Majnemer1-6/+15
2014-10-19InstCombine: (sub (or A B) (xor A B)) --> (and A B)David Majnemer1-0/+9
2014-10-08Format spacing and remove extra lines to comply with standards. NFC.Suyog Sarda1-5/+6
2014-09-07Make use of @llvm.assume in ValueTracking (computeKnownBits, etc.)Hal Finkel1-30/+38
2014-08-22InstCombine: sub nsw %x, C -> add nsw %x, -C if C isn't INT_MINDavid Majnemer1-1/+4
2014-08-20InstCombine: Annotate sub with nuw when we prove it's safeDavid Majnemer1-0/+18
2014-08-19InstCombine: Annotate sub with nsw when we prove it's safeDavid Majnemer1-1/+39
2014-08-16InstCombine: Fix a potential bug in 0 - (X sdiv C) -> (X sdiv -C)David Majnemer1-1/+1
2014-08-11InstCombine: Combine (add (and %a, %b) (or %a, %b)) to (add %a, %b)David Majnemer1-1/+23
2014-07-31InstCombine: Correctly propagate NSW/NUW for x-(-A) -> x+ADavid Majnemer1-3/+9
2014-07-17Fix Typo (first commit to test commit access)Suyog Sarda1-1/+1
2014-07-07Make helper functions static.Benjamin Kramer1-2/+2
2014-07-02InstCombine: Don't turn -(x/INT_MIN) -> x/INT_MINDavid Majnemer1-3/+3
2014-06-27Added instruction combine to transform few more negative values addition to s...Dinesh Dwivedi1-48/+62
2014-06-26This patch removed duplicate code for matching patterns Dinesh Dwivedi1-36/+0
2014-06-26Added instruction combine to transform few more negative values addition to s...Dinesh Dwivedi1-49/+54
2014-06-19Added instruction combine to transform few more negative values addition to s...Dinesh Dwivedi1-0/+45
2014-06-19Refactored and updated SimplifyUsingDistributiveLaws() to Dinesh Dwivedi1-52/+0
2014-06-17[InstCombine] mark ADD with nuw if no unsigned overflowJingyue Wu1-0/+22
2014-06-04 InstCombine: Improvement to check if signed addition overflows.Rafael Espindola1-7/+46
2014-06-02Add back commit r210029.Rafael Espindola1-4/+19
2014-06-02Revert "Add the nsw flag when we detect that an add will not signed overflow."Rafael Espindola1-5/+0
2014-06-02Add the nsw flag when we detect that an add will not signed overflow.Rafael Espindola1-0/+5
2014-05-29Revert "Revert "Revert "InstCombine: Improvement to check if signed addition ...Rafael Espindola1-44/+6