X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTransforms%2FInstCombine%2FInstCombine.h;h=b492777a47249ce918f55765d5fa4e400d3be626;hb=5057f381418ddc8c96699c40479ead993cd62e7b;hp=05846d0f9e1786c92c1739f815d9c25d0df9422b;hpb=0cc5b1f60e02716cac617959d88d4c412fdb3154;p=oota-llvm.git diff --git a/lib/Transforms/InstCombine/InstCombine.h b/lib/Transforms/InstCombine/InstCombine.h index 05846d0f9e1..b492777a472 100644 --- a/lib/Transforms/InstCombine/InstCombine.h +++ b/lib/Transforms/InstCombine/InstCombine.h @@ -290,6 +290,12 @@ private: /// operators which are associative or commutative. bool SimplifyAssociativeOrCommutative(BinaryOperator &I); + /// SimplifyDistributed - This tries to simplify binary operations which some + /// other binary operation distributes over (eg "A*B+A*C" -> "A*(B+C)" since + /// addition is distributed over by multiplication). Returns the result of + /// the simplification, or null if no simplification was performed. + Instruction *SimplifyDistributed(BinaryOperator &I); + /// SimplifyDemandedUseBits - Attempts to replace V with a simpler value /// based on the demanded bits. Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask,