https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77287
--- Comment #6 from Petr <kobalicek.petr at gmail dot com> --- Yes, the code is not really doing anything useful, I only wrote it to demonstrate the spills problem. Clang actually outsmarted me by removing half of the code :) I think this issue can be closed, I cannot repro this with the newest GCC.