Allow the optimizer to remove unnecessary EH cleanups surrounding calls
to os_log_helper, to save some code size.
As a follow-up, it might be worthwhile to add a BasicNoexcept exception
spec to os_log_helper, and to then teach CGCall to emit direct calls for
callees which can't throw. This could save some compile-time.
Sorry for the late feedback.
Can we pass -O0 instead of -O1 to avoid running the optimization passes and just check that the helper function has attribute nounwind? I haven't checked, but I suspect there are already tests in llvm that check SimplifyCFG turns nounwind invokes to calls.
I'm cleaning up this file and os_log.m in preparation for adding more test cases.