[llvm] 62e9c76 - [AArch64][SVE] Remove unused function missed from D101302

Bradley Smith via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 30 08:57:47 PDT 2021


Author: Bradley Smith
Date: 2021-04-30T16:57:09+01:00
New Revision: 62e9c7601adb1d137c8f5f2061bd47580ddd8f7f

URL: https://github.com/llvm/llvm-project/commit/62e9c7601adb1d137c8f5f2061bd47580ddd8f7f
DIFF: https://github.com/llvm/llvm-project/commit/62e9c7601adb1d137c8f5f2061bd47580ddd8f7f.diff

LOG: [AArch64][SVE] Remove unused function missed from D101302

The functionality in SVEIntrinsicOpts::isReinterpretToSVBool was moved in
D101302, however the original now unused function was not removed (NFC).

Differential Revision: https://reviews.llvm.org/D101642

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp b/llvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp
index 2a11556a035b..10dec93ffae4 100644
--- a/llvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp
+++ b/llvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp
@@ -55,8 +55,6 @@ struct SVEIntrinsicOpts : public ModulePass {
   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 @@ namespace llvm {
 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:
 ///


        


More information about the llvm-commits mailing list