https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29256
--- Comment #53 from Bill Schmidt <wschmidt at gcc dot gnu.org> --- I'm not a fan of a tree-level unroller. It's impossible to make good decisions about unroll factors that early. But your second approach sounds quite promising to me.