Or if those limits are always got directly from global scope, then just remove extra fields from LocalLimits and ConstantLimits structs. Latter solution would be slightly more efficient, since one does not have to get address space structure limits indirectly, but only add constant GEPs to bookkeepping in compile time.
Or if those limits are always got directly from global scope, then just remove extra fields from LocalLimits and ConstantLimits structs. Latter solution would be slightly more efficient, since one does not have to get address space structure limits indirectly, but only add constant GEPs to bookkeepping in compile time.