aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/ConstantFolding.cpp
AgeCommit message (Expand)Author
2010-03-19FP16 constfoldingAnton Korobeynikov
2010-03-18Simplify this code.Dan Gohman
2010-03-12When constant folding GEP of GEP, do not crash if an index ofDuncan Sands
2010-03-10Constant-fold GEP-of-GEP into a single GEP.Dan Gohman
2010-02-23Remove the code which constant-folded ptrtoint(inttoptr(x)+c) toDan Gohman
2010-02-22Canonicalize ConstantInts to the right operand of commutativeDan Gohman
2010-02-22Minor formatting cleanup.Dan Gohman
2010-02-17Fold bswap(undef) to undef.Dan Gohman
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-08Add const qualifiers.Dan Gohman
2010-02-01Generalize target-independent folding rules for sizeof to handle moreDan Gohman
2010-01-08fix PR5978 by peeling the loop so that we avoid shifting theChris Lattner
2010-01-02constant fold nasty constant expressions formed by llvm-gcc,Chris Lattner
2009-12-04Fix PR5551 by not ignoring the top level constantexpr whenChris Lattner
2009-12-03fix PR5673 by being more careful about pointers to functions.Chris Lattner
2009-11-29Teach ConstantFolding to do a better job when folding gep(bitcast).Nick Lewycky
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