aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/InstructionSimplify.cpp
AgeCommit message (Expand)AuthorFilesLines
2016-09-02Simplify code a bit. No functional change intended.Andrea Di Biagio1-15/+16
2016-09-02[instsimplify] Fix incorrect folding of an ordered fcmp with a vector of all ...Andrea Di Biagio1-1/+1
2016-08-23[InstSimplify] allow icmp with constant folds for splat vectors, part 2Sanjay Patel1-83/+77
2016-08-23[InstSimplify] allow icmp with constant folds for splat vectors, part 1Sanjay Patel1-6/+10
2016-08-22[InstSimplify] add helper function for SimplifyICmpInst(); NFCISanjay Patel1-133/+143
2016-08-17Replace "fallthrough" comments with LLVM_FALLTHROUGHJustin Bogner1-5/+5
2016-08-16[InstSimplify] Fold gep (gep V, C), (xor V, -1) to C-1David Majnemer1-1/+7
2016-08-11Use range algorithms instead of unpacking begin/endDavid Majnemer1-4/+4
2016-08-07[InstSimplify] Fold gep (gep V, C), (sub 0, V) to CDavid Majnemer1-0/+20
2016-08-07[InstSimplify] Try hard to simplify pointer comparisonsDavid Majnemer1-0/+10
2016-08-04[InstCombine] use m_APInt to allow icmp eq (op X, Y), C folds for splat const...Sanjay Patel1-7/+6
2016-08-04Reinstate "[CloneFunction] Don't remove side effecting calls"David Majnemer1-2/+4
2016-08-03Revert "[CloneFunction] Don't remove side effecting calls"Reid Kleckner1-4/+2
2016-08-03[CloneFunction] Don't remove side effecting callsDavid Majnemer1-2/+4
2016-07-26[InstSimplify] Cast folding can be made more genericDavid Majnemer1-46/+43
2016-07-26Reapply: [InstSimplify] Add support for bitcasts"David Majnemer1-0/+29
2016-07-25Revert "[InstSimplify] Add support for bitcasts"David Majnemer1-29/+0
2016-07-25[InstSimplify] Add support for bitcastsDavid Majnemer1-0/+29
2016-07-25[InstSimplify] Fold trunc([zs]ext(%V)) -> %VDavid Majnemer1-1/+7
2016-07-21[InstSimplify] don't crash handling a pointer or aggregate typeSanjay Patel1-0/+3
2016-07-21[InstSimplify] recognize trunc + icmp sgt/slt variants of select simplificati...Sanjay Patel1-7/+33
2016-07-20[InstSimplify][InstCombine] don't crash when folding vector selects of icmpSanjay Patel1-1/+4
2016-07-18refactor SimplifySelectInst; NFCISanjay Patel1-97/+115
2016-07-14Simplify llvm.masked.load w/ undef masksDavid Majnemer1-5/+21
2016-07-13Move a transform from InstCombine to InstSimplify.David Majnemer1-0/+9
2016-07-11Pointer-comparison folding should look through returned-argument functionsHal Finkel1-0/+5
2016-07-02Remove dead TLI arg of isKnownNonNull and propagate deadness. NFC.Sean Silva1-4/+3
2016-06-25[InstSimplify] Replace calls to null with undefDavid Majnemer1-1/+2
2016-06-20[InstSimplify] analyze (optionally casted) icmps to eliminate obviously false...Sanjay Patel1-4/+31
2016-06-19fix formatting, typo; NFCSanjay Patel1-1/+1
2016-06-14IR: Introduce local_unnamed_addr attribute.Peter Collingbourne1-1/+1
2016-06-08Avoid copies of std::strings and APInt/APFloats where we only read from itBenjamin Kramer1-1/+1
2016-05-10[InstSimplify] use computeKnownBits on shift amount operandsSanjay Patel1-0/+16
2016-05-03Fold compares irrespective of whether allocation can be elidedAnna Thomas1-5/+21
2016-04-22Introduce llvm.load.relative intrinsic.Peter Collingbourne1-0/+61
2016-04-21Add optimization for 'icmp slt (or A, B), A' and some related idioms based on...Nick Lewycky1-15/+42
2016-04-20[ValueTracking] Make isImpliedCondition return an Optional<bool>. NFC.Chad Rosier1-6/+3
2016-04-19[ValueTracking] Improve isImpliedCondition for conditions with matching opera...Chad Rosier1-6/+12
2016-04-13[InstCombine] We folded an fcmp to an i1 instead of a vector of i1David Majnemer1-12/+19
2016-04-08Don't IPO over functions that can be de-refinedSanjoy Das1-1/+1
2016-04-05Minor code cleanups. NFC.Junmo Park1-2/+2
2016-02-29[InstSimplify] Restore fsub 0.0, (fsub 0.0, X) ==> X optznBenjamin Kramer1-1/+1
2016-02-29[InstSimplify] fsub 0.0, (fsub -0.0, X) ==> X is only safe if signed zeros ar...Benjamin Kramer1-7/+8
2016-01-22[opaque pointer types] [NFC] Add an explicit type argument to ConstantFoldLoa...Eduard Burtescu1-1/+1
2016-01-21[InstCombine] Simplify (x >> y) <= xDavid Majnemer1-2/+4
2016-01-21Change ConstantFoldInstOperands to take Instruction instead of opcode and typ...Manuel Jacob1-2/+1
2016-01-21Introduce ConstantFoldCastOperand function and migrate some callers of Consta...Manuel Jacob1-1/+1
2016-01-21Introduce ConstantFoldBinaryOpOperands function and migrate some callers of C...Manuel Jacob1-68/+29
2016-01-20fix typo; NFCSanjay Patel1-1/+1
2016-01-17[opaque pointer types] [breaking-change] [NFC] SimplifyGEPInst: take the sour...Manuel Jacob1-5/+6