aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/ConstantFolding.cpp
AgeCommit message (Expand)Author
2010-09-27Don't try to constant fold libm functions with non-finite arguments.Jakob Stoklund Olesen
2010-09-17Don't include <fenv.h> now that we have llvm/System/FEnv.h.Jakob Stoklund Olesen
2010-09-17Attempt to support platforms which don't have fenv.h.Dan Gohman
2010-09-17Fix the folding of floating-point math library calls, like sin(infinity),Dan Gohman
2010-07-16eliminate CallInst::ArgOffsetGabor Greif
2010-07-12Add parentheses around an || to correct the logic. Also silences a GCC warningChandler Carruth
2010-07-12fix PR7429, a crash turning a load from a string into a float.Chris Lattner
2010-07-07conditionalize by CallInst::ArgOffsetGabor Greif
2010-06-18Eliminate unnecessary uses of getZExtValue().Dan Gohman
2010-04-16Revert 101465, it broke internal OpenGL testing.Eric Christopher
2010-04-16reapply r101434Gabor Greif
2010-04-16back out r101423 and r101397, they break llvm-gcc self-host on darwin10Gabor Greif
2010-04-15reapply r101364, which has been backed out in r101368Gabor Greif
2010-04-15back out r101364, as it trips the linux nightlybot on some clang C++ testsGabor Greif
2010-04-15rotate CallInst operands, i.e. move callee to the backGabor Greif
2010-04-12Minor code simplification.Dan Gohman
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