For callee save/restored operation, it mostly uses the
following inst patterns:
sw rs2, offset(x2) sd rs2, offset(x2) fsw rs2, offset(x2) fsd rs2, offset(x2) lw rd, offset(x2) ld rd, offset(x2) flw rd, offset(x2) fld rd, offset(x2)
and offset decides whether the instructions can be compressed.
now offset 2032 will be set by default if stacksize is larger
than 2^12-1 to save and restore callee saved register, so it
will prevent all the callee saved stack insts be compressed.
Allocate proper offset for stack insts is useful to decrease
the codesize and improve performance and add an option
riscv-compress-stack-inst to control whether to do this
optimization.
This comment is about the code after the compressed handling. Should it be moved down?