implement cast.ll:test35. With this, we recognize:
authorChris Lattner <sabre@nondot.org>
Wed, 29 Nov 2006 07:18:39 +0000 (07:18 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 29 Nov 2006 07:18:39 +0000 (07:18 +0000)
commit46b96055cf34dca14ca4d3f853fa8cd8785e5517
tree481bcdb98fb167fc1bc00bbec0bbfaa6dd9bb209
parent6478b2fcd1e8756e75af088d9c6631caa123fbf9
implement cast.ll:test35.  With this, we recognize:

unsigned short swp(unsigned short a) {
       return ((a & 0xff00) >> 8 | (a & 0x00ff) << 8);
}

as an idiom for bswap.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32011 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp