It sometimes lets you replace code like x | (x << a) | (x << b) if a, b are fixed.
If you've worked with Morton codes you've probably seen something like the this GLSL code to decode a Morton code, which end up at roughly 27 integer operations to generate the equivalent 2D position.
Code transcribed from fgiesen.wordpress.com/2009/12/13/d...
It sometimes lets you replace code like x | (x << a) | (x << b) if a, b are fixed.