aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/ConstantFold.cpp
AgeCommit message (Expand)Author
2010-03-04Make the 'icmp pred trunc(ext(X)), CST --> icmp pred X, ext(trunc(CST))'Nick Lewycky
2010-03-03fix incorrect folding of icmp with undef, PR6481.Chris Lattner
2010-02-25Teach the constant folder about union types.Dan Gohman
2010-02-25Remove code which assumes it knows how vectors are stored in memory.Dan Gohman
2010-02-22Canonicalize ConstantInts to the right operand of commutativeDan Gohman
2010-02-22Use Instruction::isCommutative instead of duplicating it.Dan Gohman
2010-02-16Introduce isOpaqueTy and use it rather than isa<OpaqueType>. Also, move someDuncan Sands
2010-02-16There are two ways of checking for a given type, for example isa<PointerType>(T)Duncan Sands
2010-02-15Uniformize the names of type predicates: rather than having isFloatTy andDuncan Sands
2010-02-12Add support for a union type in LLVM IR. Patch by Talin!Chris Lattner
2010-02-10Canonicalize sizeof and alignof on pointer types to a canonicalDan Gohman
2010-02-02Factor out alignof expression folding into a separate function andDan Gohman
2010-02-01eliminate a bunch of pointless LLVMContext arguments.Chris Lattner
2010-02-01Fix typo "of" -> "or" and change the way a line was formatted to fitDuncan Sands
2010-02-01fix PR6195, a bug constant folding scalar -> vector compares.Chris Lattner
2010-02-01fix PR6197 - infinite recursion in ipsccp due to block addressesChris Lattner
2010-02-01Generalize target-independent folding rules for sizeof to handle moreDan Gohman
2010-01-28Remove the folding ruleDan Gohman
2010-01-28Remove SCEVAllocSizeExpr and SCEVFieldOffsetExpr, and in their placeDan Gohman
2010-01-21Fix a crasher trying to fold each element in a comparison between two vectorsNick Lewycky
2010-01-05Move remaining stuff to the isInteger predicate.Benjamin Kramer
2010-01-05Convert a ton of simple integer type equality tests to the new predicate.Benjamin Kramer
2009-12-17Aggressively flip compare constant expressions where appropriate; constantEli Friedman
2009-10-28Previously, all operands to Constant were themselves constant.Chris Lattner
2009-10-17Teach vm core to more aggressively fold 'trunc' constantexprs,Chris Lattner
2009-10-05strength reduce a ton of type equality tests to check the typeid (ThroughChris Lattner
2009-09-20Peer through zext and sext to eliminate them when it is safe to do so.Nick Lewycky
2009-09-20Fold 'icmp eq (icmp), true' into an xor(icmp).Nick Lewycky
2009-09-20Correct the comment; this applies to fcmp too.Nick Lewycky
2009-09-20Remove tab, again.Nick Lewycky
2009-09-20Teach the constant folder how to not a cmpinst.Nick Lewycky
2009-09-20Try turning icmp(bitcast(x), bitcast(y)) into icmp(bitcast(bitcast(x)), y) inNick Lewycky
2009-09-20Remove tabs I added.Nick Lewycky
2009-09-20Clean up the usage of evaluateICmpRelation's return value.Nick Lewycky
2009-09-20Remove dead store by taking a guess at what Chris meant. I wasn't able toNick Lewycky
2009-09-20Delete dead code. sext and zext can not turn integers into pointers. Further,Nick Lewycky
2009-09-20Value* were never meant to be const. Removing constness from the constantNick Lewycky
2009-09-20Teach the constant folder how to handle a few simple i1 cases.Nick Lewycky
2009-09-15Fix an accidental inversion of the inbounds flag.Dan Gohman
2009-09-15fix PR4963: folding insertvalue would sometimes turn a packed struct intoChris Lattner
2009-09-11Teach lib/VMCore/ConstantFold.cpp how to set the inbounds keyword andDan Gohman
2009-09-10Factor out the code for checking that all indices in a getelementptr areDan Gohman
2009-09-03Revert 80959. It isn't sufficient to solve the full problem. And itDan Gohman
2009-09-03Remove the API for creating ConstantExprs with the nsw, nuw, inbounds,Dan Gohman
2009-08-29Cleanup whitespace and indentation.Dan Gohman
2009-08-13Push LLVMContexts through the IntegerType APIs.Owen Anderson
2009-08-12Simplify this code, and use an in-bounds GEP.Dan Gohman
2009-08-05Privatize the StructType table, which unfortunately involves routing contexts...Owen Anderson
2009-07-31Move a few more APIs back to 2.5 forms. The only remaining ones left to chan...Owen Anderson
2009-07-31Move getTrue() and getFalse() to 2.5-like APIs.Owen Anderson