[Support] Make getMaxValue and getMinValue constexpr variables (NFC) (#161480)
This patch makes getMaxValue and getMinValue constexpr variables and
"inlines" the calls to getMaxValue and getMinValue.
We could probably make InstructionCost constexpr also, but that's left
for another day.