[clang] [Clang][OpenCL] Mark scalar loads from constant address space invariant (PR #218356)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 3 08:00:51 PST 2026
================
@@ -145,16 +148,19 @@ class Address {
/// pointer is signed.
llvm::Value *Offset = nullptr;
+ KnownInvariant_t IsInvariant : 1;
----------------
erichkeane wrote:
Can we hide this either in `Pointer` (since I think we have 2 bits available there always?), or at least in `Offset` or `ElementType`?
https://github.com/llvm/llvm-project/pull/218356
More information about the cfe-commits
mailing list