Misc codegen/perf tweaks to code-stubs-s390