aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/ConstantFold.cpp
AgeCommit message (Expand)Author
2011-02-17Enhance constant folding of bitcast operations on vectors of floats.Nadav Rotem
2011-02-15convert ConstantVector::get to use ArrayRef.Chris Lattner
2011-02-14revert my ConstantVector patch, it seems to have made the llvm-gccChris Lattner
2011-02-14Switch ConstantVector::get to use ArrayRef instead of a pointer+sizeChris Lattner
2011-02-13Fix a regression from r125393;Nadav Rotem
2011-02-11Fix 9173.Nadav Rotem
2011-01-30Fix 'fcmp one' constant folding. Noticed by inspection.Nick Lewycky
2011-01-30Fix some formatting and upgrade comments from llvm 1.x to 2.x syntax.Nick Lewycky
2011-01-29Add the select optimization recently added to instcombine to constant folding.Nick Lewycky
2011-01-21Add a constant folding of casts from zero to zero. Fixes PR9011!Nick Lewycky
2011-01-14Remove casts between Value** and Constant**, which won't work if aJay Foad
2011-01-14Move some shift transforms out of instcombine and into InstructionSimplify.Duncan Sands
2010-12-29fix PR8867: a crash handling fp128. Thanks to Nick for the testcase.Chris Lattner
2010-12-20There is no need for isAssociative to take the type as an argument anymore.Duncan Sands
2010-12-07PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() andJay Foad
2010-12-04Remove unneeded zero arrays.Benjamin Kramer
2010-08-28remove unions from LLVM IR. They are severely buggy and notChris Lattner
2010-06-28Constant fold x == undef to undef.Dan Gohman
2010-06-21Use A.append(...) instead of A.insert(A.end(), ...) when A is aDan Gohman
2010-06-05getFoldedOffsetOf no longer does anything special with vector types.Dan Gohman
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