LegalizeDAG: Implement PROMOTE for ISD::BITREVERSE
authorTom Stellard <thomas.stellard@amd.com>
Thu, 13 Oct 2016 21:03:49 +0000 (21:03 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 13 Oct 2016 21:03:49 +0000 (21:03 +0000)
commitf80c1875a3b18ed668542daa5375c459f7bf9a03
treeca7406e7b6246e9d5de71448d8a20def32bd7647
parentc45025e7632459c61a989519125b1033d6593389
LegalizeDAG: Implement PROMOTE for ISD::BITREVERSE

Summary:
This operation is promoted the same way was ISD::BSWAP.  This will
prevent a regression in test/Target/AMDGOU/bitreverse.ll when i16
support is implemented.

Reviewers: bogner, hfinkel

Subscribers: hfinkel, wdng, llvm-commits

Differential Revision: https://reviews.llvm.org/D25202

llvm-svn: 284163
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp