I just landed a change that might cause missed optimizations in the presence of intrinsics:
Long story short, you should annotate your (language & target) intrinsics properly. Consider
DefaultIntrinsicAttrs as opposed to
Intrinsic for anything that has “common” behavior.
Default intrinsic attributes include
nocallback, both are needed for GlobalModRef to continue to operate as before.
Please reach out if you have questions or concerns.