https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112295
Andrew Waterman <andrew at sifive dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew at sifive dot com --- Comment #2 from Andrew Waterman <andrew at sifive dot com> --- SiFive 7-series cores will fuse the second version, too, so it's obviously preferable. (I know there exist other cores that will only perform this fusion if the branch shadow contains only a move, but they should have their own optimization settings.)