[DAGCombiner] Factor out distributeTruncateThroughAnd
authorAdam Nemet <anemet@apple.com>
Tue, 4 Mar 2014 23:28:31 +0000 (23:28 +0000)
committerAdam Nemet <anemet@apple.com>
Tue, 4 Mar 2014 23:28:31 +0000 (23:28 +0000)
commitf48dbd869e3f108d73067e44d7023c7a0cbbfb4f
tree821303b07f32831e4c554f3b199ed95f2840e6bf
parentbc03027dd81d073e93b433f7e9dd804cd4188f47
[DAGCombiner] Factor out distributeTruncateThroughAnd

Currently this code is duplicated across visitSHL, visitSRA and visitSRL.  The
plan is to add rotates as clients to this new function.

There is no functional change intended here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202908 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp