[PATCH] D102397: [AArch64] Lower bitreverse in ISel

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 14 07:10:46 PDT 2021


dmgreen added inline comments.


================
Comment at: llvm/lib/IR/AutoUpgrade.cpp:556
     }
+    if (Name.startswith("aarch64.neon.rbit")) {
+      NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::bitreverse,
----------------
Do we have a test for the autoupgrade, to show that @llvm.aarch64.neon.rbit turns into @llvm.bitreverse?


================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:381
   setOperationAction(ISD::BITREVERSE, MVT::i64, Legal);
+  setOperationAction(ISD::BITREVERSE, MVT::v8i8, Legal);
+  setOperationAction(ISD::BITREVERSE, MVT::v16i8, Legal);
----------------
Can we move this to the other "hasNeon" section?


================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:1019
     setOperationAction(ISD::CTLZ,       MVT::v1i64, Expand);
     setOperationAction(ISD::CTLZ,       MVT::v2i64, Expand);
 
----------------
Perhaps here. This looks quite neon.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102397/new/

https://reviews.llvm.org/D102397



More information about the llvm-commits mailing list