Pair up inlined AutoreleaseRV calls with their matching RetainRV or
ClaimRV.
- For RetainRV, delete both instructions.
- For ClaimRV, replace with a normal Release and then run the usual optimizations.
This avoids problems where more aggressive inlining triggers memory
regressions.
"into a normal Release"
Please add something like assert(Class == ARCInstKind::ClaimRV); to make it clearer in the code why this is reasonable behavior.