[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
Mon Jul 13 14:47:44 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:

It was never a bug I meant.

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


More information about the llvm-commits mailing list