re PR middle-end/54146 (Very slow compile with attribute((flatten)))