aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
AgeCommit message (Expand)AuthorFilesLines
2011-07-25Convert GetElementPtrInst to use ArrayRef.Jay Foad1-1/+1
2011-07-22Convert IRBuilder::CreateGEP and IRBuilder::CreateInBoundsGEP to useJay Foad1-3/+2
2011-07-20Clean up includes of llvm/Analysis/ConstantFolding.h so it's included where i...Eli Friedman1-0/+1
2011-07-18land David Blaikie's patch to de-constify Type, with a few tweaks.Chris Lattner1-39/+39
2011-07-13It's not safe to fold (fptrunc (sqrt (fpext x))) to (sqrtf x) if there is ano...Evan Cheng1-1/+2
2011-07-08Reapply a fixed version of r133285.Bob Wilson1-5/+8
2011-06-17Revert r133285. Causing odd failures on Dragonegg.Chad Rosier1-4/+5
2011-06-17Relocate NUW test to cover all binary ops in a dynamic alloca expr.Stuart Hastings1-5/+4
2011-06-13Avoid fusing bitcasts with dynamic allocas if the amount-to-allocateStuart Hastings1-0/+5
2011-05-27Final step of instcombine debuginfo; switch a couple more places over to Inse...Eli Friedman1-1/+1
2011-05-18More instcombine simplifications towards better debug locations.Eli Friedman1-2/+1
2011-05-18Use ReplaceInstUsesWith instead of replaceAllUsesWith where appropriate in in...Eli Friedman1-2/+2
2011-04-02While SimplifyDemandedBits constant folds this, we can't rely on it here.Benjamin Kramer1-2/+7
2011-04-01Fix comment.Benjamin Kramer1-2/+2
2011-04-01Tweaks to the icmp+sext-to-shifts optimization to address Frits' comments:Benjamin Kramer1-6/+6
2011-04-01Fix build.Benjamin Kramer1-1/+2
2011-04-01InstCombine: Turn icmp + sext into bitwise/integer ops when the input has onl...Benjamin Kramer1-0/+50
2011-04-01InstCombine: Move (sext icmp) transforms into their own method. No intended f...Benjamin Kramer1-37/+42
2011-03-30Remove PHINode::reserveOperandSpace(). Instead, add a parameter toJay Foad1-2/+1
2011-03-30(Almost) always call reserveOperandSpace() on newly created PHINodes.Jay Foad1-0/+1
2011-03-08llvm.dbg.declare intrinsic does not use any llvm::Values. It's magic!Devang Patel1-10/+3
2011-02-15convert ConstantVector::get to use ArrayRef.Chris Lattner1-7/+3
2011-02-14revert my ConstantVector patch, it seems to have made the llvm-gccChris Lattner1-3/+7
2011-02-14Switch ConstantVector::get to use ArrayRef instead of a pointer+sizeChris Lattner1-7/+3
2011-01-15implement an instcombine xform that canonicalizes casts outside of and-with-c...Chris Lattner1-2/+12
2010-12-17Whitespace fixes. No functionality change.Bill Wendling1-16/+16
2010-12-17Add vector versions of some existing scalar transforms to aid codegen in matc...Nate Begeman1-0/+17
2010-09-07Fix a serious performance regression introduced by r108687 on linux:Chris Lattner1-1/+6
2010-08-28for completeness, allow undef also.Chris Lattner1-0/+3
2010-08-28handle the constant case of vector insertion. For somethingChris Lattner1-3/+32
2010-08-28optimize bitcasts from large integers to vector into vectorChris Lattner1-9/+127
2010-08-27Implement a pretty general logical shift propagationChris Lattner1-2/+1
2010-08-27teach the truncation optimization that an entire chain ofChris Lattner1-0/+5
2010-08-27Add an instcombine to clean up a common pattern producedChris Lattner1-0/+23
2010-08-26optimize "integer extraction out of the middle of a vector" as producedChris Lattner1-13/+35
2010-08-26optimize bitcast(trunc(bitcast(x))) where the result is a float and 'x'Chris Lattner1-0/+34
2010-07-19Tweak per Chris' comments.Owen Anderson1-7/+8
2010-07-19Reimplement r108639 in InstCombine rather than DAGCombine.Owen Anderson1-0/+26
2010-05-28Fix instcombine's handling of alloca to accept non-i32 types.Dan Gohman1-8/+7
2010-05-25Fix a missing newline in debug output.Dan Gohman1-1/+1
2010-05-08Teach instcombine to transform a bitcast/(zext|trunc)/bitcast sequenceChris Lattner1-0/+70
2010-04-07Say bitcast instead of bitconvert.Dan Gohman1-1/+1
2010-02-16There are two ways of checking for a given type, for example isa<PointerType>(T)Duncan Sands1-11/+11
2010-02-15Uniformize the names of type predicates: rather than having isFloatTy andDuncan Sands1-2/+2
2010-02-11Rename ValueRequiresCast to ShouldOptimizeCast, to better reflectChris Lattner1-7/+16
2010-02-02LangRef.html says that inttoptr and ptrtoint always use zero-extensionDan Gohman1-21/+32
2010-01-24change the canonical form of "cond ? -1 : 0" to be Chris Lattner1-6/+24
2010-01-18my instcombine transformations to make extension elimination moreChris Lattner1-0/+13
2010-01-11reenable the piece that turns trunc(zext(x)) -> x even if zext has multiple u...Chris Lattner1-3/+1
2010-01-11Disable folding sext(trunc(x)) -> x (and other similar cast/cast cases) when ...Chris Lattner1-6/+14