You're starting with a wrong premise.
All three major compilers (Clang, GCC, MSVC) generate worse assembly with constexpr
variable when optimizations are disabled, and the same assembly when optimizations are enabled.
Here's Clang, for example: https://godbolt.org/z/qjvherx4v
Don't waste time worrying about microoptimizations on non-existent weird compilers.