aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/InstCombine
AgeCommit message (Expand)Author
2011-10-05Update InstCombine worklist after instruction transform is complete.Jim Grosbach
2011-10-02Add a new icmp+select optz'n. Also shows off the load(cst) folding added inNick Lewycky
2011-10-02Enhance a couple places where we were doing constant folding of instructions,Nick Lewycky
2011-09-30Don't modify constant in-place.Jim Grosbach
2011-09-30float comparison to double 'zero' constant can just be a float 'zero.'Jim Grosbach
2011-09-30Tidy up. Trailing whitespace.Jim Grosbach
2011-09-30Inlining often produces landingpad instructions with repeatedDuncan Sands
2011-09-29Clean up uses of switch instructions so they are not dependent on the operand...Eli Friedman
2011-09-27Stop emitting instructions with the name "tmp" they eat up memory and have to...Benjamin Kramer
2011-09-19Fix an infinite loop where a transform in InstCombiner::visitAnd claims a con...Eli Friedman
2011-09-15Make demanded-elt simplification for shufflevector slightly stronger. Spotte...Eli Friedman
2011-09-06Split the init.trampoline intrinsic, which currently combines GCC'sDuncan Sands
2011-09-04Use Duncan's patch to delete the instructions in reverse order (minus the lan...Bill Wendling
2011-09-02Update comments to reflect reality.Bill Wendling
2011-09-01Reduce indentation. No functionality change.Bill Wendling
2011-09-01Change worklist driven deletion to be an iterative process.Bill Wendling
2011-09-01Resubmit with fix. Properly remove the instructions except for landingpad, wh...Bill Wendling
2011-09-01Submitted this too early.Bill Wendling
2011-09-01Don't DCE the landingpad instruction.Bill Wendling
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-08-25When inserting new instructions, use getFirstInsertionPt instead ofBill Wendling
2011-08-17Revert r137655. There is some question about whether the 'landingpad'Bill Wendling
2011-08-16Use the getFirstInsertionPt() method instead of getFirstNonPHI + an 'isa<>'Bill Wendling
2011-08-16A few places where we want to skip the landingpad instruction for insertion.Bill Wendling
2011-08-15Don't sink the instruction to before a landingpad instruction.Bill Wendling
2011-08-15Update instcombine for atomic load/store.Eli Friedman
2011-08-15Duncan pointed out that the LandingPadInst might read memory. (It might alsoBill Wendling
2011-08-15Don't try to sink the landingpad instruction. It's immobile.Bill Wendling
2011-08-14This transform is not safe. Thanks to Eli for pointing that out!Nick Lewycky
2011-08-14Don't attempt to add 'nsw' when intermediate instructions had no such guarantee.Nick Lewycky
2011-08-14Teach instcombine to preserve the nsw bit by doing an after-the-fact analysisNick Lewycky
2011-08-03Small cleanups:Nick Lewycky
2011-08-03Fix logical error when detecting lifetime intrinsics.Nick Lewycky
2011-08-02Teach InstCombine that lifetime intrincs aren't a real user on the result of aNick Lewycky
2011-07-31Add the 'resume' instruction for the new EH rewrite.Bill Wendling
2011-07-31Add a small gep optimization I noticed was missing while reading some IL.Rafael Espindola
2011-07-30Revert r136253, r136263, r136269, r136313, r136325, r136326, r136329, r136338,Bill Wendling
2011-07-29Make sure to correctly clear the exact/nuw/nsw flags off of shifts when they ...Eli Friedman
2011-07-29Rewrite the CMake build to use explicit dependencies between libraries,Chandler Carruth
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