https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122529 --- Comment #3 from zero at smallinteger dot com --- FYI, circumstantial evidence with gcc 12.3.0 suggests that adding -fweb after -Oz can eliminate unnecessary instructions.