aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/InstCombine
AgeCommit message (Expand)Author
2011-07-27Merge the contents from exception-handling-rewrite to the mainline.Bill Wendling
2011-07-25Shorten some expressions by using ArrayRef::slice().Frits van Bommel
2011-07-25Convert GetElementPtrInst to use ArrayRef.Jay Foad
2011-07-22Convert IRBuilder::CreateGEP and IRBuilder::CreateInBoundsGEP to useJay Foad
2011-07-22Fix an MSVC warning, caused by a case I missed when convertingJay Foad
2011-07-20Clean up includes of llvm/Analysis/ConstantFolding.h so it's included where i...Eli Friedman
2011-07-19Convert SimplifyGEPInst to use ArrayRef.Jay Foad
2011-07-19Convert TargetData::getIndexedOffset to use ArrayRef.Jay Foad
2011-07-19Use ArrayRef in ConstantFoldInstOperands and ConstantFoldCall.Jay Foad
2011-07-18Migrate LLVM and Clang to use the new makeArrayRef(...) functions where previ...Frits van Bommel
2011-07-18land David Blaikie's patch to de-constify Type, with a few tweaks.Chris Lattner
2011-07-15Convert CallInst and InvokeInst APIs to use ArrayRef.Jay Foad
2011-07-15start using the new helper methods a bit.Chris Lattner
2011-07-14Change Intrinsic::getDeclaration and friends to take an ArrayRef.Benjamin Kramer
2011-07-13It's not safe to fold (fptrunc (sqrt (fpext x))) to (sqrtf x) if there is ano...Evan Cheng
2011-07-13Convert InsertValueInst and ExtractValueInst APIs to use ArrayRef.Jay Foad
2011-07-12Second attempt at de-constifying LLVM Types in FunctionType::get(),Jay Foad
2011-07-12Revert r134893 and r134888 (and related patches in other trees). It was causingBill Wendling
2011-07-11De-constify Types in FunctionType::get().Jay Foad
2011-07-11Don't duplicate the work done by a gep into a "bitcast" if the gep hasRafael Espindola
2011-07-08Reapply a fixed version of r133285.Bob Wilson
2011-07-04PR10267: Don't combine an equality compare with an AND into an inequality com...Benjamin Kramer
2011-07-01Generalize @llvm.ctlz, @llvm.cttz, and @llvm.ctpop to work on vectors of inte...Owen Anderson
2011-06-23PR10180: Fix a instcombine crash with FP vectors.Eli Friedman
2011-06-20Revamp the "ConstantStruct::get" methods. Previously, these were scatteredChris Lattner
2011-06-17Revert r133285. Causing odd failures on Dragonegg.Chad Rosier
2011-06-17Relocate NUW test to cover all binary ops in a dynamic alloca expr.Stuart Hastings
2011-06-13Avoid fusing bitcasts with dynamic allocas if the amount-to-allocateStuart Hastings
2011-06-13InstCombine: Fold A-b == C --> b == A-C if A and C are constants.Benjamin Kramer
2011-06-12InstCombine: Shrink ((zext X) & C1) == C2 to fold away the cast if the "zext"...Benjamin Kramer
2011-06-12Simplify code. No functionality changes, name changes aside.Benjamin Kramer
2011-06-01Reapply 132348 with fixes. rdar://problem/6501862Stuart Hastings
2011-05-31Revert to pacify a buildbot. rdar://problem/6501862Stuart Hastings
2011-05-31Followup to 132316; accept arbitrary constants, add with a constant,Stuart Hastings
2011-05-30(1 - X) * (-2) -> (x - 1) * 2, for all positive nonzero powers of 2Stuart Hastings
2011-05-28ConstantFoldInstOperands doesn't like compares, hand it off to instsimplify i...Benjamin Kramer
2011-05-27InstCombine: Make switch folding with equality compares more aggressive by tr...Benjamin Kramer
2011-05-27Final step of instcombine debuginfo; switch a couple more places over to Inse...Eli Friedman
2011-05-26Renamed llvm.x86.sse42.crc32 intrinsics; crc64 doesn't exist. Chad Rosier
2011-05-25PR9998: ashr exact %x, 31 is not equivalent to sdiv exact %x, -2147483648.Eli Friedman
2011-05-24Make instcombine O(N) instead of O(N^2) in code where the same simplifiable c...Eli Friedman
2011-05-23rearrange two transforms, since one subsumes the other. Make the shift-exact...Chris Lattner
2011-05-23Transform any logical shift of a power of two into an exact/NUW shift whenChris Lattner
2011-05-23use the valuetracking isPowerOfTwo function, which is more powerful than chec...Chris Lattner
2011-05-22add some random notes.Chris Lattner
2011-05-22Carve out a place in instcombine to put transformations which work knowing th...Chris Lattner
2011-05-21Revert "InstCombine: Turn mul.with.overflow(X, 2) into the cheaper add.with.o...Benjamin Kramer
2011-05-21InstCombine: Turn mul.with.overflow(X, 2) into the cheaper add.with.overflow(...Benjamin Kramer
2011-05-20Revert r131664 and fix it in instcombine instead. rdar://9467055Evan Cheng
2011-05-19Add comment.Evan Cheng