aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/InstCombine
AgeCommit message (Expand)Author
2010-03-23Fix an incorrect logic causing instcombine to miss some _chk -> non-chk trans...Evan Cheng
2010-03-20Add a setCalledFunction member to InvokeInst (like in CallInst)Gabor Greif
2010-03-12Factor checked library call optimization into a common helper class and use itBenjamin Kramer
2010-03-11stpcpy is so similar to strcpy, it doesn't deserve a complete copy of the __s...Benjamin Kramer
2010-03-11Lower stpcpy_chk when possible.Eric Christopher
2010-03-11Add strncpy libcall creator. Use it when it should be used.Eric Christopher
2010-03-08Re-commit 97860 with fix. getMallocAllocatedType may return null.Evan Cheng
2010-03-06Let the fallthrough handle whether or not we've changed anythingEric Christopher
2010-03-06Migrate _chk call lowering from SimplifyLibCalls to InstCombine. StubEric Christopher
2010-03-06Temporarily revert:Eric Christopher
2010-03-06Transform @llvm.objectsize to integer if the argument is a result of malloc o...Evan Cheng
2010-03-05Instcombine should turn llvm.objectsize of a alloca with static size to an in...Evan Cheng
2010-03-05fix PR6512, a case where instcombine would incorrectly merge loadsChris Lattner
2010-03-05Fix PR6503. This turned into a much more interesting and nasty bug. Various Chris Lattner
2010-03-05simplify some functions and make them work with vectorChris Lattner
2010-03-05Add missing break for Intrinsic::objectsize case. It was falling through to t...Evan Cheng
2010-03-03This test case:Bill Wendling
2010-03-02Floating-point add, sub, and mul are now spelled fadd, fsub, and fmul,Dan Gohman
2010-02-24Fix indentation.Dan Gohman
2010-02-23Don't do (X != Y) ? X : Y -> X for floating-point values; it doesn'tDan Gohman
2010-02-22Instcombine constant folding can normalize gep with negative index to index w...Evan Cheng
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-13Fix a problem where we had bitcasted operands that gave usEric Christopher
2010-02-11Make sure that ConstantExpr offsets also aren't off of externEric Christopher
2010-02-11Rename ValueRequiresCast to ShouldOptimizeCast, to better reflectChris Lattner
2010-02-11Add ConstantExpr handling to Intrinsic::objectsize lowering.Eric Christopher
2010-02-10Fix "the the" and similar typos.Dan Gohman
2010-02-09Move Intrinsic::objectsize lowering back to InstCombineCalls andEric Christopher
2010-02-09simplify this code, duh.Chris Lattner
2010-02-09fix PR6193, only considering sign extensions *from i1* for thisChris Lattner
2010-02-08fix some problems handling large vectors reported in PR6230Chris Lattner
2010-02-05fix logical-select to invoke filecheck right, and fix hte instcombineChris Lattner
2010-02-05Remove this code for now. I have a better idea and will rewrite withEric Christopher
2010-02-04Temporarily revert this since it appears to have caused a buildEric Christopher
2010-02-04Rework constant expr and array handling for objectsize instcombining.Eric Christopher
2010-02-03If we're dealing with a zero-length array, don't lower to anyEric Christopher
2010-02-03Recommit this, looks like it wasn't the cause.Eric Christopher
2010-02-02Hopefully temporarily revert this.Eric Christopher
2010-02-02Reformat my last patch slightly.Eric Christopher
2010-02-02Re-add strcmp and known size object size checking optimization.Eric Christopher
2010-02-02don't turn (A & (C0?-1:0)) | (B & ~(C0?-1:0)) -> C0 ? A : BChris Lattner
2010-02-02LangRef.html says that inttoptr and ptrtoint always use zero-extensionDan Gohman
2010-02-01cleanups.Chris Lattner
2010-02-01fix rdar://7590304, a miscompilation of objc apps on arm. The callerChris Lattner
2010-02-01fix rdar://7590304, an infinite loop in instcombine. In the invokeChris Lattner
2010-01-31Simplify/generalize the xor+add->sign-extend instcombine.Eli Friedman
2010-01-31Add a small transform: transform -(X<<Y) to (-X<<Y) when the shift has a singleEli Friedman
2010-01-30Check alignment of loads when deciding whether it is safe to execute themBob Wilson
2010-01-30Use more specific types to avoid casts. No functionality change.Bob Wilson