re PR tree-optimization/46590 (long compile time with -O2 and many loops)