aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/ConstantFold.cpp
AgeCommit message (Expand)Author
2012-02-06Remove some dead code and tidy things up now that vectors use ConstantDataVectorChris Lattner
2012-01-30Fix ConstantFoldShuffleVectorInstruction to properly handle the caseChris Lattner
2012-01-27continue making the world safe for ConstantDataVector. At this point,Chris Lattner
2012-01-26unbreak test/Bitcode/shuffle.ll.Chris Lattner
2012-01-26simplify by using ShuffleVectorInst::getMaskValue.Chris Lattner
2012-01-26eliminate the Constant::getVectorElements method. There are better (andChris Lattner
2012-01-26Continue improving support for ConstantDataAggregate, and use theChris Lattner
2012-01-20More dead code removal (using -Wunreachable-code)David Blaikie
2012-01-11Don't try to create a GEP when the pointee type is unsized (such GEPsDuncan Sands
2011-12-17The powers that be have decided that LLVM IR should now support 16-bitDan Gohman
2011-12-15Make constant folding for GEPs a bit more aggressive.Eli Friedman
2011-09-02Return undef value (instead of arbitrary) for wrong or undef index inJakub Staszak
2011-09-02ConstantVector returns arbitrary value for the wrong index.Jakub Staszak
2011-07-25Convert GetElementPtrInst to use ArrayRef.Jay Foad
2011-07-21Make better use of ConstantExpr::getGetElementPtr's InBounds parameter.Jay Foad
2011-07-21Convert ConstantExpr::getGetElementPtr andJay Foad
2011-07-19Convert ConstantFoldGetElementPtr to use ArrayRef.Jay Foad
2011-07-18Add APInt(numBits, ArrayRef<uint64_t> bigVal) constructor to prevent future a...Jeffrey Yasskin
2011-07-18land David Blaikie's patch to de-constify Type, with a few tweaks.Chris Lattner
2011-07-13Convert InsertValueInst and ExtractValueInst APIs to use ArrayRef.Jay Foad
2011-07-09don't load element before checking to see if it is valid.Chris Lattner
2011-07-09Land the long talked about "type system rewrite" patch. ThisChris Lattner
2011-07-01Improve constant folding of undef for cmp and select operators.Dan Gohman
2011-07-01Improve constant folding of undef for binary operators.Dan Gohman
2011-06-22Make ConstantVector::get() always take an ArrayRef, never a std::vector.Jay Foad
2011-06-20Revamp the "ConstantStruct::get" methods. Previously, these were scatteredChris Lattner
2011-04-15Fix a ton of comment typos found by codespell. Patch byChris Lattner
2011-04-11Don't include Operator.h from InstrTypes.h.Jay Foad
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