aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/InstCombine/InstCombineCompares.cpp
Commit message (Expand)AuthorAgeFilesLines
* start using the new helper methods a bit.Chris Lattner2011-07-151-19/+17
* Change Intrinsic::getDeclaration and friends to take an ArrayRef.Benjamin Kramer2011-07-141-2/+2
* Convert InsertValueInst and ExtractValueInst APIs to use ArrayRef.Jay Foad2011-07-131-2/+1
* Second attempt at de-constifying LLVM Types in FunctionType::get(),Jay Foad2011-07-121-2/+2
* Revert r134893 and r134888 (and related patches in other trees). It was causingBill Wendling2011-07-121-2/+2
* De-constify Types in FunctionType::get().Jay Foad2011-07-111-2/+2
* PR10267: Don't combine an equality compare with an AND into an inequality com...Benjamin Kramer2011-07-041-1/+5
* InstCombine: Fold A-b == C --> b == A-C if A and C are constants.Benjamin Kramer2011-06-131-7/+16
* InstCombine: Shrink ((zext X) & C1) == C2 to fold away the cast if the "zext"...Benjamin Kramer2011-06-121-1/+17
* Simplify code. No functionality changes, name changes aside.Benjamin Kramer2011-06-121-11/+6
* PR9998: ashr exact %x, 31 is not equivalent to sdiv exact %x, -2147483648.Eli Friedman2011-05-251-4/+4
* More instcombine simplifications towards better debug locations.Eli Friedman2011-05-181-11/+9
* Avoid combining GEPs that might overflow at runtime.Stuart Hastings2011-05-141-1/+3
* PR9838: Fix transform introduced in r127064 to not trigger when only one side...Eli Friedman2011-05-051-1/+1
* Transform: "icmp eq (trunc (lshr(X, cst1)), cst" to "icmp (and X, mask), cst"Chris Lattner2011-04-261-0/+25
* some random cleanups, no functionality change.Chris Lattner2011-04-261-5/+5
* Fix a ton of comment typos found by codespell. Patch byChris Lattner2011-04-151-1/+1
* InstCombine: APFloat can't perform arithmetic on PPC double doubles, don't ev...Benjamin Kramer2011-03-311-2/+4
* InstCombine: Fix transform to use the swapped predicate.Benjamin Kramer2011-03-311-2/+2
* InstCombine: fold fcmp (fneg x), (fneg y) -> fcmp x, yBenjamin Kramer2011-03-311-0/+5
* InstCombine: fold fcmp pred (fneg x), C -> fcmp swap(pred) x, -CBenjamin Kramer2011-03-311-0/+8
* InstCombine: Shrink "fcmp (fpext x), C" to "fcmp x, C" if C can be losslessly...Benjamin Kramer2011-03-311-0/+34
* InstCombine: fold fcmp (fpext x), (fpext y) -> fcmp x, y.Benjamin Kramer2011-03-311-0/+7
* Reorder comments to put them the right way around.Nick Lewycky2011-03-081-2/+2
* ConstantInt has some getters which return ConstantInt's or ConstantVector's ofNick Lewycky2011-03-061-22/+22
* Thread comparisons over udiv/sdiv/ashr/lshr exact and lshr nuw/nsw wheneverNick Lewycky2011-03-051-0/+21
* Try once again to optimize "icmp (srem X, Y), Y" by turning the comparison intoNick Lewycky2011-03-051-0/+29
* srem doesn't actually have the same resulting sign as its numerator, you couldNick Lewycky2011-02-281-10/+0
* Teach InstCombine to fold "(shr exact X, Y) == 0" --> X == 0, fixing #1 fromNick Lewycky2011-02-281-5/+13
* The sign of an srem instruction is the sign of its dividend (the firstNick Lewycky2011-02-281-3/+13
* Add some transforms of the kind X-Y>X -> 0>Y which are valid when there is noDuncan Sands2011-02-181-18/+17
* Transform "A + B >= A + C" into "B >= C" if the adds do not wrap. Likewise f...Duncan Sands2011-02-171-93/+106
* remove a now-unneccesary cast.Chris Lattner2011-02-131-1/+1
* implement instcombine folding for things like (x >> c) < 42.Chris Lattner2011-02-131-8/+50
* refactor some code out into a helper method.Chris Lattner2011-02-131-46/+54
* Also fold (A+B) == A -> B == 0 when the add is commuted.Benjamin Kramer2011-02-111-2/+4
* Enhance the "compare with shift" and "compare with div" Chris Lattner2011-02-101-44/+52
* Recognize and simplifyAnders Carlsson2011-01-301-1/+11
* At -O123 the early-cse pass is run before instcombine has run. According to myDuncan Sands2011-01-201-32/+11
* remove the AllowAggressive argument to FoldOpIntoPhi. It is forced to false ...Chris Lattner2011-01-161-2/+2
* fix typoChris Lattner2011-01-151-1/+1
* Catch ~x < cst just like ~x < ~y, we currently handle this throughChris Lattner2011-01-151-4/+8
* Remove dead variable, const-ref-ize an APInt.Owen Anderson2011-01-111-4/+1
* Fix a random missed optimization by making InstCombine more aggressive when d...Owen Anderson2011-01-111-2/+40
* recognize an unsigned add with overflow idiom into uadd.Chris Lattner2010-12-191-5/+50
* use IC.ReplaceInstUsesWith instead of a raw RAUW so that uses ofChris Lattner2010-12-191-3/+5
* generalize the sadd creation code to not require that theChris Lattner2010-12-191-39/+16
* fix another miscompile in the llvm.sadd formation logic: it wasn't Chris Lattner2010-12-191-4/+39
* fix a bug (possibly 8816) in the sadd forming xform: it isn'tChris Lattner2010-12-191-0/+10
* rework the code added in r122072 to pull it out to its ownChris Lattner2010-12-191-61/+64