In a profile of sculpting with the Vulkan GPU backend enabled, This function made up 0.7% of samples. Since it's just a single comparison, inlining it should be helpful for the compiler. Pull Request: https://projects.blender.org/blender/blender/pulls/138210