aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/ConstantFolding.cpp
AgeCommit message (Expand)Author
2011-03-27Constant folding support for calls to umul.with.overflow(), basically identic...Frits van Bommel
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-06Simplify test, as suggested by Chris.Anders Carlsson
2011-02-06When loading from a constant, fold inttoptr if the integer type and the resul...Anders Carlsson
2011-01-24Give GetUnderlyingObject a TargetData, to keep it in syncDan Gohman
2011-01-16fix PR8983, a broken assertion.Chris Lattner
2011-01-11Teach constant folding to perform conversions from constant floatingChandler Carruth
2011-01-10Cleanup some of the constant folding code to consistently test intrinsicChandler Carruth
2011-01-06use isNullValue() to simplify code, add an assert.Chris Lattner
2011-01-06implement constant folding support for an exotic constant expr:Chris Lattner
2010-12-23Change all self assignments X=X to (void)X, so that we can turn on aJeffrey Yasskin
2010-12-15Move Value::getUnderlyingObject to be a standaloneDan Gohman
2010-12-07PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() andJay Foad
2010-11-29Teach ConstantFoldInstruction() how to fold insertvalue and extractvalue.Frits van Bommel
2010-11-29Merge System into Support.Michael J. Spencer
2010-11-23Clarify that constant folding of instructions applies when all operandsDuncan Sands
2010-11-21Fix spelling.Duncan Sands
2010-11-21apply Dan's fix for PR8268 which allows constant folding to handle indexes overChris Lattner
2010-11-14Boost the power of phi node constant folding slightly: if allDuncan Sands
2010-10-14add uadd_ov/usub_ov to apint, consolidate constant foldingChris Lattner
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