Per the title, this patch replaces the target-specific intrinsic with a target-independent equivalent.
This requires the LLVM side change here: https://reviews.llvm.org/D28379.
In D28379, making the bitreverse intrinsic legal for AArch64 and lowering to a rbit instruction accordingly.
Chad
Since you're here is it worth dealing with the AARCH32 case as well? We know it works on the llvm side.