Implement mulo x, 2 -> addo x, x in DAGCombiner.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 21 May 2011 18:31:55 +0000 (18:31 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 21 May 2011 18:31:55 +0000 (18:31 +0000)
commitf55d26e78851c2c09f8b09cfd7e7bbda7130d93b
tree420bfca4a2ba0d09f6d3e9253b6d847c4bd76724
parenta0962766baa84a7dcf8d594b91aa45ea1336696f
Implement mulo x, 2 -> addo x, x in DAGCombiner.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131800 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/umul-with-overflow.ll