[PATCH] D28379: [AArch64] Add support for lowering the bitreverse intrinsic to the rbit instruction.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 6 00:56:42 PST 2017


RKSimon added inline comments.


================
Comment at: lib/Target/AArch64/AArch64InstrInfo.td:957
 def : Pat<(int_aarch64_rbit GPR32:$Rn), (RBITWr $Rn)>;
 def : Pat<(int_aarch64_rbit GPR64:$Rn), (RBITXr $Rn)>;
+def : Pat<(bitreverse GPR32:$Rn), (RBITWr $Rn)>;
----------------
Are these target intrinsics still necessary?


https://reviews.llvm.org/D28379





More information about the llvm-commits mailing list