aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/ConstantFolding.cpp
AgeCommit message (Expand)Author
2009-11-23Make ConstantFoldConstantExpression recursively visit the entireDan Gohman
2009-11-09fix ConstantFoldCompareInstOperands to take the LHS/RHS asChris Lattner
2009-11-06remove a bunch of extraneous LLVMContext argumentsChris Lattner
2009-10-25Teach FoldBitCast to be able to handle bitcasts from (e.g.) i128 -> <4 x float>.Chris Lattner
2009-10-25move FoldBitCast earlier in the file, and use it instead of Chris Lattner
2009-10-25refactor FoldBitCast to reduce nesting and to always return a constantexprChris Lattner
2009-10-24various cleanups suggested by DuncanChris Lattner
2009-10-24fix PR5287, a serious regression from my previous patches. Thanks toChris Lattner
2009-10-23teach libanalysis to simplify vector loads with bitcast sources. ThisChris Lattner
2009-10-23enhance FoldReinterpretLoadFromConstPtr to handle loads of up to 32 Chris Lattner
2009-10-23teach libanalysis to fold int and fp loads from almost arbitraryChris Lattner
2009-10-22move another load optimization from instcombine -> libanalysis.Chris Lattner
2009-10-22move 'loading i32 from string' optimization from instcombineChris Lattner
2009-10-22Move some constant folding logic for loads out of instcombine intoChris Lattner
2009-10-05Extend ConstantFolding to understand signed overflow variantsEvan Phoenix
2009-10-05Remove an unnnecessary LLVMContext argument inDan Gohman
2009-10-05teach the optimizer how to constant fold uadd/usub intrinsics.Chris Lattner
2009-10-05simplify this code a bunch.Chris Lattner
2009-10-05code simplifications.Chris Lattner
2009-09-16simplify some codeChris Lattner
2009-09-11Teach lib/VMCore/ConstantFold.cpp how to set the inbounds keyword andDan Gohman
2009-09-10Give these files top-level comments that describe the current code.Dan 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-09-02fix PR4848 an infinite loop when indexing down through a recursive gepChris Lattner
2009-08-21Don't assume that the operand of an inttoptr is an pointer-sized integer.Dan Gohman
2009-08-21Change getelementptr folding to use APInt instead of uint64_t forDan Gohman
2009-08-20Various comment and whitespace cleanups.Dan Gohman
2009-08-19Fix a bug in the over-index constant folding. When over-indexing anDan Gohman
2009-08-19Canonicalize indices in a constantexpr GEP. If Indices exceed theDan Gohman
2009-08-13Push LLVMContexts through the IntegerType APIs.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-30Move more code back to 2.5 APIs.Owen Anderson
2009-07-29Move types back to the 2.5 API.Owen Anderson
2009-07-29Move ConstantExpr to 2.5 API.Owen Anderson
2009-07-28Return ConstantVector to 2.5 API.Owen Anderson
2009-07-27Move ConstantFP construction back to the 2.5-ish API.Owen Anderson
2009-07-26Remove Value::getNameLenDaniel Dunbar
2009-07-24Revert the ConstantInt constructors back to their 2.5 forms where possible, t...Owen Anderson
2009-07-22Get rid of the Pass+Context magic.Owen Anderson
2009-07-14llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable.Torok Edwin
2009-07-11assert(0) -> LLVM_UNREACHABLE.Torok Edwin
2009-07-08Remove the vicmp and vfcmp instructions. Because we never had a release withNick Lewycky
2009-07-06"LLVMContext* " --> "LLVMContext *"Owen Anderson
2009-07-06Thread LLVMContext through the constant folding APIs, which touches a lot of ...Owen Anderson
2009-06-15Support vector casts in more places, fixing a variety of assertionDan Gohman
2009-06-02Change ConstantFoldConstantExpression to accept a nullDan Gohman
2009-05-21Use v.data() instead of &v[0] when SmallVector v might be empty.Jay Foad
2009-05-09Rename PaddedSize to AllocSize, in the hope that thisDuncan Sands
2009-05-07Revert 71165. It did more than just revert 71158 and it introducedDan Gohman