[PATCH] D101642: [AArch64][SVE] Remove unused function missed from D101302

Bradley Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 30 08:34:33 PDT 2021


bsmith created this revision.
bsmith added reviewers: paulwalker-arm, peterwaller-arm, joechrisellis, DavidSpickett.
Herald added subscribers: psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
bsmith requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The functionality in SVEIntrinsicOpts::isReinterpretToSVBool was moved in
D101302 <https://reviews.llvm.org/D101302>, however the original now unused function was not removed (NFC).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101642

Files:
  llvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp


Index: llvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp
===================================================================
--- llvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp
+++ llvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp
@@ -55,8 +55,6 @@
   void getAnalysisUsage(AnalysisUsage &AU) const override;
 
 private:
-  static IntrinsicInst *isReinterpretToSVBool(Value *V);
-
   bool coalescePTrueIntrinsicCalls(BasicBlock &BB,
                                    SmallSetVector<IntrinsicInst *, 4> &PTrues);
   bool optimizePTrueIntrinsicCalls(SmallSetVector<Function *, 4> &Functions);
@@ -91,19 +89,6 @@
 ModulePass *createSVEIntrinsicOptsPass() { return new SVEIntrinsicOpts(); }
 } // namespace llvm
 
-/// Returns V if it's a cast from <n x 16 x i1> (aka svbool_t), nullptr
-/// otherwise.
-IntrinsicInst *SVEIntrinsicOpts::isReinterpretToSVBool(Value *V) {
-  IntrinsicInst *I = dyn_cast<IntrinsicInst>(V);
-  if (!I)
-    return nullptr;
-
-  if (I->getIntrinsicID() != Intrinsic::aarch64_sve_convert_to_svbool)
-    return nullptr;
-
-  return I;
-}
-
 /// Checks if a ptrue intrinsic call is promoted. The act of promoting a
 /// ptrue will introduce zeroing. For example:
 ///


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101642.341924.patch
Type: text/x-patch
Size: 1180 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210430/b674b16e/attachment.bin>


More information about the llvm-commits mailing list