aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/ConstantFold.cpp
AgeCommit message (Expand)AuthorFilesLines
2016-08-17Replace "fallthrough" comments with LLVM_FALLTHROUGHJustin Bogner1-1/+1
2016-07-13[ConstantFold] Don't incorrectly infer inbounds on array GEPDavid Majnemer1-42/+59
2016-05-26[ConstantFold] NFC cleanup after previous change.Adam Nemet1-40/+39
2016-05-26[ConstantFold] Fix incorrect index rewrites for GEPsAdam Nemet1-1/+1
2016-05-21Fix constant folding of addrspacecast of nullMatt Arsenault1-1/+2
2016-05-04[ConstantFold] Don't try to strip fp -> int bitcasts to simplify icmpsHal Finkel1-0/+4
2016-04-18[NFC] Header cleanupMehdi Amini1-2/+0
2016-04-05fix documentation comments; NFCSanjay Patel1-39/+34
2016-04-04Don't fold double constant to an integer if dest type not integralTeresa Johnson1-0/+4
2016-03-21[InstCombine] Ensure all undef operands are handled before binary instruction...Simon Pilgrim1-2/+16
2016-03-10Strip trailing whitespace.Simon Pilgrim1-66/+66
2016-02-25IR: Make the X / undef -> undef fold match the commentJustin Bogner1-1/+1
2016-02-13[ConstantFolding] Reduce APInt and APFloat copying.Benjamin Kramer1-7/+7
2016-01-19[opaque pointer types] [NFC] GEP: replace get(Pointer)ElementType uses with g...Eduard Burtescu1-19/+3
2016-01-19Fix constant folding of constant vector GEPs with undef or null as pointer ar...Manuel Jacob1-9/+13
2016-01-19Rename Variable `Ptr` to `PtrTy`. NFC.Manuel Jacob1-6/+6
2015-12-15Use CmpInst::Predicate instead of 'unsigned short' in some places. NFCCraig Topper1-4/+7
2015-12-14[ConstantFold] Fix bitcast to gep constant folding transform.David Majnemer1-1/+1
2015-09-21Remove roundingMode argument in APFloat::modStephen Canon1-1/+1
2015-09-12Fix typos.Bruce Mitchener1-4/+4
2015-08-21Add comment as follow up to r245712David Blaikie1-0/+1
2015-08-21Remove an unnecessary use of pointee types introduced in r194220David Blaikie1-3/+2
2015-08-01De-constify pointers to Type since they can't be modified. NFCCraig Topper1-5/+5
2015-06-12Refix a use of explicit pointer types in GEP constant foldingDavid Blaikie1-4/+4
2015-06-04[ConstantFold] Don't skip the first gep index when folding gepsDavid Majnemer1-3/+3
2015-05-21[opaque pointer type] Pass explicit pointee type in another case of GEP const...David Blaikie1-1/+1
2015-05-19As r237678 was reverted, this is no longer needed.Yaron Keren1-2/+1
2015-05-19Fix Visual C++ errors C2784, C2780, C2782 after r237678.Yaron Keren1-1/+2
2015-05-13[opaque pointer type] Use GlobalVariable::getValueType rather than accessing ...David Blaikie1-1/+1
2015-05-13[opaque pointer type] Constant Folding: Use GEPOperator to access the pointee...David Blaikie1-2/+2
2015-05-07Recommit r236670: [opaque pointer type] Pass explicit pointer type through GE...David Blaikie1-7/+23
2015-05-06Revert "[opaque pointer type] Pass explicit pointer type through GEP constant...David Blaikie1-23/+7
2015-05-06[opaque pointer type] Pass explicit pointer type through GEP constant foldingDavid Blaikie1-7/+23
2015-04-27Constfold insertelement to undef when index is out-of-boundsPawel Bylica1-7/+14
2015-04-24Correct extractelement constant foldingPawel Bylica1-3/+2
2015-04-02[opaque pointer type] API migration for GEP constant factoriesDavid Blaikie1-9/+9
2015-03-30[opaque pointer type] Change GetElementPtrInst::getIndexedType to take the po...David Blaikie1-2/+4
2015-03-28[ConstantFold] Don't fold ppc_fp128 <-> int bitcastsHal Finkel1-2/+13
2015-03-13ConstantFold: Fix big shift constant foldingDavid Majnemer1-21/+12
2015-03-09InstCombine: fix fold "fcmp x, undef" to account for NaNMehdi Amini1-8/+18
2015-02-17Prefer SmallVector::append/insert over push_back loops.Benjamin Kramer1-2/+1
2015-02-16ConstantFold: Properly fold GEP indices wider than i64David Majnemer1-18/+31
2014-12-18ConstantFold: Shifting undef by zero results in undefDavid Majnemer1-0/+9
2014-12-10ConstantFold: Clean up X * undef codeDavid Majnemer1-6/+8
2014-12-10ConstantFold, InstSimplify: undef >>a x can be either -1 or 0, choose 0David Majnemer1-2/+3
2014-12-10ConstantFold: an undef shift amount results in undefDavid Majnemer1-13/+14
2014-12-10ConstantFold: div undef, 0 should fold to undef, not zeroDavid Majnemer1-9/+19
2014-12-08ConstantFold: Zero-sized globals might land on top of another globalDavid Majnemer1-3/+15
2014-12-06ConstantFold: Don't optimize comparisons with weak linkage objectsDavid Majnemer1-1/+4
2014-12-06I didn't intend to commit this change.David Majnemer1-1/+1