aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ConstantFolding.cpp
AgeCommit message (Expand)AuthorFilesLines
2011-06-23133713 broke the build, revert it.Rafael Espindola1-2/+1
2011-06-23Support: make floating-exception header privateDylan Noblesmith1-1/+2
2011-06-20Revamp the "ConstantStruct::get" methods. Previously, these were scatteredChris Lattner1-1/+1
2011-05-22implement PR9315, constant folding exp2 in terms of pow (since hosts withoutChris Lattner1-1/+7
2011-04-11Don't include Operator.h from InstrTypes.h.Jay Foad1-0/+1
2011-03-27Constant folding support for calls to umul.with.overflow(), basically identic...Frits van Bommel1-3/+8
2011-02-15convert ConstantVector::get to use ArrayRef.Chris Lattner1-2/+2
2011-02-14revert my ConstantVector patch, it seems to have made the llvm-gccChris Lattner1-2/+2
2011-02-14Switch ConstantVector::get to use ArrayRef instead of a pointer+sizeChris Lattner1-2/+2
2011-02-06Simplify test, as suggested by Chris.Anders Carlsson1-6/+2
2011-02-06When loading from a constant, fold inttoptr if the integer type and the resul...Anders Carlsson1-0/+11
2011-01-24Give GetUnderlyingObject a TargetData, to keep it in syncDan Gohman1-1/+2
2011-01-16fix PR8983, a broken assertion.Chris Lattner1-1/+1
2011-01-11Teach constant folding to perform conversions from constant floatingChandler Carruth1-0/+56
2011-01-10Cleanup some of the constant folding code to consistently test intrinsicChandler Carruth1-16/+18
2011-01-06use isNullValue() to simplify code, add an assert.Chris Lattner1-5/+6
2011-01-06implement constant folding support for an exotic constant expr:Chris Lattner1-1/+19
2010-12-23Change all self assignments X=X to (void)X, so that we can turn on aJeffrey Yasskin1-2/+1
2010-12-15Move Value::getUnderlyingObject to be a standaloneDan Gohman1-1/+1
2010-12-07PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() andJay Foad1-4/+2
2010-11-29Teach ConstantFoldInstruction() how to fold insertvalue and extractvalue.Frits van Bommel1-1/+12
2010-11-29Merge System into Support.Michael J. Spencer1-1/+1
2010-11-23Clarify that constant folding of instructions applies when all operandsDuncan Sands1-10/+11
2010-11-21Fix spelling.Duncan Sands1-2/+2
2010-11-21apply Dan's fix for PR8268 which allows constant folding to handle indexes overChris Lattner1-7/+15
2010-11-14Boost the power of phi node constant folding slightly: if allDuncan Sands1-12/+18
2010-10-14add uadd_ov/usub_ov to apint, consolidate constant foldingChris Lattner1-32/+28
2010-09-27Don't try to constant fold libm functions with non-finite arguments.Jakob Stoklund Olesen1-0/+7
2010-09-17Don't include <fenv.h> now that we have llvm/System/FEnv.h.Jakob Stoklund Olesen1-1/+0
2010-09-17Attempt to support platforms which don't have fenv.h.Dan Gohman1-12/+7
2010-09-17Fix the folding of floating-point math library calls, like sin(infinity),Dan Gohman1-2/+9
2010-07-16eliminate CallInst::ArgOffsetGabor Greif1-2/+2
2010-07-12Add parentheses around an || to correct the logic. Also silences a GCC warningChandler Carruth1-1/+1
2010-07-12fix PR7429, a crash turning a load from a string into a float.Chris Lattner1-3/+9
2010-07-07conditionalize by CallInst::ArgOffsetGabor Greif1-2/+2
2010-06-18Eliminate unnecessary uses of getZExtValue().Dan Gohman1-1/+1
2010-04-16Revert 101465, it broke internal OpenGL testing.Eric Christopher1-2/+2
2010-04-16reapply r101434Gabor Greif1-2/+2
2010-04-16back out r101423 and r101397, they break llvm-gcc self-host on darwin10Gabor Greif1-2/+2
2010-04-15reapply r101364, which has been backed out in r101368Gabor Greif1-2/+2
2010-04-15back out r101364, as it trips the linux nightlybot on some clang C++ testsGabor Greif1-2/+2
2010-04-15rotate CallInst operands, i.e. move callee to the backGabor Greif1-2/+2
2010-04-12Minor code simplification.Dan Gohman1-1/+1
2010-03-19FP16 constfoldingAnton Korobeynikov1-0/+25
2010-03-18Simplify this code.Dan Gohman1-16/+8
2010-03-12When constant folding GEP of GEP, do not crash if an index ofDuncan Sands1-1/+13
2010-03-10Constant-fold GEP-of-GEP into a single GEP.Dan Gohman1-0/+11
2010-02-23Remove the code which constant-folded ptrtoint(inttoptr(x)+c) toDan Gohman1-37/+5
2010-02-22Canonicalize ConstantInts to the right operand of commutativeDan Gohman1-2/+2
2010-02-22Minor formatting cleanup.Dan Gohman1-2/+1