[ObjCARC] Remove unused RetainRVDep dependency kind. NFC.
authorAhmed Bougacha <ahmed@bougacha.org>
Tue, 25 Jan 2022 00:56:02 +0000 (16:56 -0800)
committerAhmed Bougacha <ahmed@bougacha.org>
Tue, 25 Jan 2022 03:37:01 +0000 (19:37 -0800)
llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp
llvm/lib/Transforms/ObjCARC/DependencyAnalysis.h

index 4921209..de0f580 100644 (file)
@@ -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");
index cf4c05e..dd6a1c3 100644 (file)
@@ -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,