[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


================
@@ -2244,10 +2244,15 @@ llvm::Value *CodeGenFunction::EmitLoadOfScalar(Address Addr, bool Volatile,
     return EmitAtomicLoad(AtomicLValue, Loc).getScalarVal();
   }
 
+  // TODO: Preserve invariance in Address::withElementType.
----------------
erichkeane wrote:

This is a pretty big 'TODO", right? 

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


More information about the cfe-commits mailing list