arsenm added a comment. In http://reviews.llvm.org/D14234#279410, @jmolloy wrote: > Hi Matt, > > Sure. That's certainly a possibility. Does your target have a similar instruction? > > James Yes, AMDGPU has a bitreverse instruction Repository: rL LLVM http://reviews.llvm.org/D14234