aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ConstantFolding.cpp
AgeCommit message (Expand)AuthorFilesLines
2010-02-17Fold bswap(undef) to undef.Dan Gohman1-0/+6
2010-02-16There are two ways of checking for a given type, for example isa<PointerType>(T)Duncan Sands1-2/+2
2010-02-15Uniformize the names of type predicates: rather than having isFloatTy andDuncan Sands1-2/+2
2010-02-08Add const qualifiers.Dan Gohman1-2/+2
2010-02-01Generalize target-independent folding rules for sizeof to handle moreDan Gohman1-0/+38
2010-01-08fix PR5978 by peeling the loop so that we avoid shifting theChris Lattner1-2/+2
2010-01-02constant fold nasty constant expressions formed by llvm-gcc,Chris Lattner1-3/+16
2009-12-04Fix PR5551 by not ignoring the top level constantexpr whenChris Lattner1-1/+1
2009-12-03fix PR5673 by being more careful about pointers to functions.Chris Lattner1-3/+10
2009-11-29Teach ConstantFolding to do a better job when folding gep(bitcast).Nick Lewycky1-0/+1
2009-11-23Make ConstantFoldConstantExpression recursively visit the entireDan Gohman1-2/+11
2009-11-09fix ConstantFoldCompareInstOperands to take the LHS/RHS asChris Lattner1-23/+18
2009-11-06remove a bunch of extraneous LLVMContext argumentsChris Lattner1-72/+60
2009-10-25Teach FoldBitCast to be able to handle bitcasts from (e.g.) i128 -> <4 x float>.Chris Lattner1-4/+13
2009-10-25move FoldBitCast earlier in the file, and use it instead of Chris Lattner1-132/+132
2009-10-25refactor FoldBitCast to reduce nesting and to always return a constantexprChris Lattner1-104/+109
2009-10-24various cleanups suggested by DuncanChris Lattner1-3/+5
2009-10-24fix PR5287, a serious regression from my previous patches. Thanks toChris Lattner1-0/+1
2009-10-23teach libanalysis to simplify vector loads with bitcast sources. ThisChris Lattner1-7/+13
2009-10-23enhance FoldReinterpretLoadFromConstPtr to handle loads of up to 32 Chris Lattner1-6/+8
2009-10-23teach libanalysis to fold int and fp loads from almost arbitraryChris Lattner1-8/+185
2009-10-22move another load optimization from instcombine -> libanalysis.Chris Lattner1-34/+48
2009-10-22move 'loading i32 from string' optimization from instcombineChris Lattner1-6/+35
2009-10-22Move some constant folding logic for loads out of instcombine intoChris Lattner1-0/+35
2009-10-05Extend ConstantFolding to understand signed overflow variantsEvan Phoenix1-0/+24
2009-10-05Remove an unnnecessary LLVMContext argument inDan Gohman1-2/+1
2009-10-05teach the optimizer how to constant fold uadd/usub intrinsics.Chris Lattner1-1/+29
2009-10-05simplify this code a bunch.Chris Lattner1-14/+14
2009-10-05code simplifications.Chris Lattner1-16/+25
2009-09-16simplify some codeChris Lattner1-6/+5
2009-09-11Teach lib/VMCore/ConstantFold.cpp how to set the inbounds keyword andDan Gohman1-6/+2
2009-09-10Give these files top-level comments that describe the current code.Dan Gohman1-3/+7
2009-09-03Revert 80959. It isn't sufficient to solve the full problem. And itDan Gohman1-12/+6
2009-09-03Remove the API for creating ConstantExprs with the nsw, nuw, inbounds,Dan Gohman1-6/+12
2009-09-02fix PR4848 an infinite loop when indexing down through a recursive gepChris Lattner1-1/+1
2009-08-21Don't assume that the operand of an inttoptr is an pointer-sized integer.Dan Gohman1-1/+3
2009-08-21Change getelementptr folding to use APInt instead of uint64_t forDan Gohman1-11/+15
2009-08-20Various comment and whitespace cleanups.Dan Gohman1-1/+1
2009-08-19Fix a bug in the over-index constant folding. When over-indexing anDan Gohman1-8/+24
2009-08-19Canonicalize indices in a constantexpr GEP. If Indices exceed theDan Gohman1-4/+48
2009-08-13Push LLVMContexts through the IntegerType APIs.Owen Anderson1-14/+17
2009-07-31Move a few more APIs back to 2.5 forms. The only remaining ones left to chan...Owen Anderson1-9/+9
2009-07-30Move more code back to 2.5 APIs.Owen Anderson1-4/+4
2009-07-29Move types back to the 2.5 API.Owen Anderson1-4/+4
2009-07-29Move ConstantExpr to 2.5 API.Owen Anderson1-26/+26
2009-07-28Return ConstantVector to 2.5 API.Owen Anderson1-1/+1
2009-07-27Move ConstantFP construction back to the 2.5-ish API.Owen Anderson1-6/+6
2009-07-26Remove Value::getNameLenDaniel Dunbar1-78/+44
2009-07-24Revert the ConstantInt constructors back to their 2.5 forms where possible, t...Owen Anderson1-10/+10
2009-07-22Get rid of the Pass+Context magic.Owen Anderson1-71/+71