Fix loopification with profiling and enable it by default (#8275)