This question is regarding the bytecode-optimizer of the solidity-compiler, not the yul-optimizer:
Is there any way to separately optimize bytecode? Normally the solidity-compiler optimizes the deployment-bytecode while compiling solidity-code as one of the last steps.
When I have unoptimized (deployment-)bytecode, how would you optimize the existing bytecode? Re-compiling the solidity-code is unfortunately not an option.
Is there another solution apart from rewriting the compiler?
I would be really happy for any hint :)