[llvm] [ObjCARC] Move autorelease-to-release conversion to pool pop site instead of converting in place (PR #152353)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 16 09:02:16 PDT 2026


================
@@ -978,27 +1036,53 @@ void ObjCARCOpt::OptimizeIndividualCallImpl(Function &F, Instruction *Inst,
   }
 
   // objc_autorelease(x) -> objc_release(x) if x is otherwise unused.
-  if (IsAutorelease(Class) && Inst->use_empty()) {
+  if (Class == ARCInstKind::Autorelease && Inst->use_empty()) {
----------------
AZero13 wrote:

Done!

https://github.com/llvm/llvm-project/pull/152353


More information about the llvm-commits mailing list