[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:58:00 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG62e9c7601adb: [AArch64][SVE] Remove unused function missed from D101302 (authored by bsmith).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101642/new/
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.341933.patch
Type: text/x-patch
Size: 1180 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210430/43d7db6b/attachment.bin>
More information about the llvm-commits
mailing list