[llvm-commits] [llvm] r50358 - in /llvm/trunk: lib/CodeGen/SelectionDAG/SelectionDAG.cpp lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/sext-misc.ll

Chris Lattner clattner at apple.com
Mon Apr 28 11:14:26 PDT 2008


On Apr 28, 2008, at 10:02 AM, Dan Gohman wrote:

> Log:
> Teach InstCombine's ComputeMaskedBits what SelectionDAG's
> ComputeMaskedBits knows about cttz, ctlz, and ctpop. Teach
> SelectionDAG's ComputeMaskedBits what InstCombine's knows
> about SRem. And teach them both some things about high bits
> in Mul, UDiv, URem, and Sub. This allows instcombine and
> dagcombine to eliminate sign-extension operations in
> several new cases.

Nice!

-Chris



More information about the llvm-commits mailing list