CL: Reapply constant sampler dedupe with fix
Previous attempt was missing a null check before accessing the sampler in the deref chain. Non-constant samplers are still function parameters at this point in the lowering passes.
GitLab will be down for maintenance Monday June 03, from approx 10am UTC for roughly 48 hours. This is for a major gitlab upgrade which requires a DB migration. See the tracker issue for more informations.
Previous attempt was missing a null check before accessing the sampler in the deref chain. Non-constant samplers are still function parameters at this point in the lowering passes.