[clang] [Clang][OpenCL] Mark scalar loads from constant address space invariant (PR #218356)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 6 06:49:06 PST 2026


https://github.com/erichkeane approved this pull request.

I think @efriedma-quic as code owner needs to do the final look over this for approval, but I think this makes sense?  Particularly putting it in Address[0].

I'm a touch concerned how often we're 'just setting' it unconditionally, but I'm hoping those are just 'correct'?


[0]: IF This lands, is there any chance you could do the 'same' in ClangIR as well?  We ALSO have address and similar code blocks, so I would expect it to be not particularly challenging? 

https://github.com/llvm/llvm-project/pull/218356


More information about the cfe-commits mailing list