diff --git a/llvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp b/llvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp --- a/llvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp +++ b/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 &PTrues); bool optimizePTrueIntrinsicCalls(SmallSetVector &Functions); @@ -91,19 +89,6 @@ ModulePass *createSVEIntrinsicOptsPass() { return new SVEIntrinsicOpts(); } } // namespace llvm -/// Returns V if it's a cast from (aka svbool_t), nullptr -/// otherwise. -IntrinsicInst *SVEIntrinsicOpts::isReinterpretToSVBool(Value *V) { - IntrinsicInst *I = dyn_cast(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: ///