aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/InstCombine/InstCombineCasts.cpp
AgeCommit message (Expand)Author
2011-08-29Fixes following the CR by Chris and Duncan:Nadav Rotem
2011-08-28Bitcasts are transitive. Bitcast-Bitcast-X becomes Bitcast-X.Nadav Rotem
2011-07-25Convert GetElementPtrInst to use ArrayRef.Jay Foad
2011-07-22Convert IRBuilder::CreateGEP and IRBuilder::CreateInBoundsGEP to useJay Foad
2011-07-20Clean up includes of llvm/Analysis/ConstantFolding.h so it's included where i...Eli Friedman
2011-07-18land David Blaikie's patch to de-constify Type, with a few tweaks.Chris Lattner
2011-07-13It's not safe to fold (fptrunc (sqrt (fpext x))) to (sqrtf x) if there is ano...Evan Cheng
2011-07-08Reapply a fixed version of r133285.Bob Wilson
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-05-27Final step of instcombine debuginfo; switch a couple more places over to Inse...Eli Friedman
2011-05-18More instcombine simplifications towards better debug locations.Eli Friedman
2011-05-18Use ReplaceInstUsesWith instead of replaceAllUsesWith where appropriate in in...Eli Friedman
2011-04-02While SimplifyDemandedBits constant folds this, we can't rely on it here.Benjamin Kramer
2011-04-01Fix comment.Benjamin Kramer
2011-04-01Tweaks to the icmp+sext-to-shifts optimization to address Frits' comments:Benjamin Kramer
2011-04-01Fix build.Benjamin Kramer
2011-04-01InstCombine: Turn icmp + sext into bitwise/integer ops when the input has onl...Benjamin Kramer
2011-04-01InstCombine: Move (sext icmp) transforms into their own method. No intended f...Benjamin Kramer
2011-03-30Remove PHINode::reserveOperandSpace(). Instead, add a parameter toJay Foad
2011-03-30(Almost) always call reserveOperandSpace() on newly created PHINodes.Jay Foad
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