Utilities used by high-level IR optimizations