[llvm] 03e9ba2 - [ObjCARC] Remove unused RetainRVDep dependency kind. NFC.
Ahmed Bougacha via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 24 19:37:19 PST 2022
Author: Ahmed Bougacha
Date: 2022-01-24T19:37:01-08:00
New Revision: 03e9ba274072a8921d78c678222fb0b43111125b
URL: https://github.com/llvm/llvm-project/commit/03e9ba274072a8921d78c678222fb0b43111125b
DIFF: https://github.com/llvm/llvm-project/commit/03e9ba274072a8921d78c678222fb0b43111125b.diff
LOG: [ObjCARC] Remove unused RetainRVDep dependency kind. NFC.
Added:
Modified:
llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp
llvm/lib/Transforms/ObjCARC/DependencyAnalysis.h
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp b/llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp
index 4921209f041b4..de0f5803b4c77 100644
--- a/llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp
+++ b/llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp
@@ -194,9 +194,6 @@ llvm::objcarc::Depends(DependenceKind Flavor, Instruction *Inst,
return CanInterruptRV(Class);
}
}
-
- case RetainRVDep:
- return CanInterruptRV(GetBasicARCInstKind(Inst));
}
llvm_unreachable("Invalid dependence flavor");
diff --git a/llvm/lib/Transforms/ObjCARC/DependencyAnalysis.h b/llvm/lib/Transforms/ObjCARC/DependencyAnalysis.h
index cf4c05ebe91ca..dd6a1c3f97958 100644
--- a/llvm/lib/Transforms/ObjCARC/DependencyAnalysis.h
+++ b/llvm/lib/Transforms/ObjCARC/DependencyAnalysis.h
@@ -46,8 +46,7 @@ enum DependenceKind {
AutoreleasePoolBoundary,
CanChangeRetainCount,
RetainAutoreleaseDep, ///< Blocks objc_retainAutorelease.
- RetainAutoreleaseRVDep, ///< Blocks objc_retainAutoreleaseReturnValue.
- RetainRVDep ///< Blocks objc_retainAutoreleasedReturnValue.
+ RetainAutoreleaseRVDep ///< Blocks objc_retainAutoreleaseReturnValue.
};
/// Find dependent instructions. If there is exactly one dependent instruction,
More information about the llvm-commits
mailing list