Is it possible to see number of steps for constexpr expression?

I have a program in which constexpr calculation exceed default constexpr step limit by a lot. When the limit is set to about 4 000 000, it compiles fine. To optimize my code, it would be helpful to see exactly how many steps is done by a constexpr calculation. Is it possible to get this number with clang at the moment?

1 Like