aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/ConstantFolding.cpp
AgeCommit message (Expand)Author
2011-08-29Fixes following the CR by Chris and Duncan:Nadav Rotem
2011-08-28Bitcasts are transitive. Bitcast-Bitcast-X becomes Bitcast-X.Nadav Rotem
2011-08-24Implement Constant::isAllOnesValue(). Fix ConstantFolding to use the new api.Nadav Rotem
2011-08-23Revert "Address Duncan's CR request:"Eric Christopher
2011-08-23Address Duncan's CR request:Nadav Rotem
2011-08-20Add constant folding support for bitcasts of splat vectors to integers.Nadav Rotem
2011-07-25Convert GetElementPtrInst to use ArrayRef.Jay Foad
2011-07-21Convert ConstantExpr::getGetElementPtr andJay Foad
2011-07-19Convert TargetData::getIndexedOffset to use ArrayRef.Jay Foad
2011-07-19Use ArrayRef in ConstantFoldInstOperands and ConstantFoldCall.Jay Foad
2011-07-18land David Blaikie's patch to de-constify Type, with a few tweaks.Chris Lattner
2011-07-13Convert InsertValueInst and ExtractValueInst APIs to use ArrayRef.Jay Foad
2011-06-23Revert "revert 133714"Rafael Espindola
2011-06-23revert 133714Dylan Noblesmith
2011-06-23133713 broke the build, revert it.Rafael Espindola
2011-06-23Support: make floating-exception header privateDylan Noblesmith
2011-06-20Revamp the "ConstantStruct::get" methods. Previously, these were scatteredChris Lattner
2011-05-22implement PR9315, constant folding exp2 in terms of pow (since hosts withoutChris Lattner
2011-04-11Don't include Operator.h from InstrTypes.h.Jay Foad
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