aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/InstCombine/InstCombineCasts.cpp
AgeCommit message (Expand)Author
2011-03-08llvm.dbg.declare intrinsic does not use any llvm::Values. It's magic!Devang Patel
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-01-15implement an instcombine xform that canonicalizes casts outside of and-with-c...Chris Lattner
2010-12-17Whitespace fixes. No functionality change.Bill Wendling
2010-12-17Add vector versions of some existing scalar transforms to aid codegen in matc...Nate Begeman
2010-09-07Fix a serious performance regression introduced by r108687 on linux:Chris Lattner
2010-08-28for completeness, allow undef also.Chris Lattner
2010-08-28handle the constant case of vector insertion. For somethingChris Lattner
2010-08-28optimize bitcasts from large integers to vector into vectorChris Lattner
2010-08-27Implement a pretty general logical shift propagationChris Lattner
2010-08-27teach the truncation optimization that an entire chain ofChris Lattner
2010-08-27Add an instcombine to clean up a common pattern producedChris Lattner
2010-08-26optimize "integer extraction out of the middle of a vector" as producedChris Lattner
2010-08-26optimize bitcast(trunc(bitcast(x))) where the result is a float and 'x'Chris Lattner
2010-07-19Tweak per Chris' comments.Owen Anderson
2010-07-19Reimplement r108639 in InstCombine rather than DAGCombine.Owen Anderson
2010-05-28Fix instcombine's handling of alloca to accept non-i32 types.Dan Gohman
2010-05-25Fix a missing newline in debug output.Dan Gohman
2010-05-08Teach instcombine to transform a bitcast/(zext|trunc)/bitcast sequenceChris Lattner
2010-04-07Say bitcast instead of bitconvert.Dan Gohman
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-11Rename ValueRequiresCast to ShouldOptimizeCast, to better reflectChris Lattner
2010-02-02LangRef.html says that inttoptr and ptrtoint always use zero-extensionDan Gohman
2010-01-24change the canonical form of "cond ? -1 : 0" to be Chris Lattner
2010-01-18my instcombine transformations to make extension elimination moreChris Lattner
2010-01-11reenable the piece that turns trunc(zext(x)) -> x even if zext has multiple u...Chris Lattner
2010-01-11Disable folding sext(trunc(x)) -> x (and other similar cast/cast cases) when ...Chris Lattner
2010-01-11Extend CanEvaluateZExtd to handle and/or/xor more aggressively in theChris Lattner
2010-01-11Remove the dead TD argument to CanEvaluateZExtd, and add aChris Lattner
2010-01-11improve comments, remove dead TD argument to CanEvaluateSExtd.Chris Lattner
2010-01-10teach sext optimization to handle truncs from types that are notChris Lattner
2010-01-10teach zext optimization how to deal with truncs that don't come fromChris Lattner
2010-01-10simplify CanEvaluateSExtd to return a bool now that we have aChris Lattner
2010-01-10the NumCastsRemoved argument to CanEvaluateSExtd is dead, remove it.Chris Lattner
2010-01-10now that the cost model has changed, we can always consider Chris Lattner
2010-01-10change the preferred canonical form for a sign extension to beChris Lattner
2010-01-10fix pasto that broke bootstrap.Chris Lattner
2010-01-10simplify CanEvaluateZExtd now that we don't care about the number of Chris Lattner
2010-01-10two changes: Chris Lattner
2010-01-10enhance CanEvaluateZExtd to handle shift left and sext, allowingChris Lattner
2010-01-10remove an xform subsumed by EvaluateInDifferentType.Chris Lattner
2010-01-10clean up this xform by using m_Trunc.Chris Lattner
2010-01-10inline and remove the rest of commonIntCastTransforms.Chris Lattner
2010-01-10Inline the expression type promotion/demotion stuff out ofChris Lattner
2010-01-08mplement a theoretical fixme.Chris Lattner
2010-01-08rename CanEvaluateInDifferentType -> CanEvaluateTruncated and Chris Lattner
2010-01-07Enhance instcombine to reason more strongly about promoting computationChris Lattner