[clang] [llvm] [IR] Memory locations for floating-point operations (PR #226826)

Serge Pavlov via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 12 02:55:08 PDT 2026


================
@@ -2860,7 +2865,7 @@ std::optional<MemoryEffects> LLParser::parseMemoryAttr() {
         tokError("default access kind must be specified first");
         return std::nullopt;
       }
-      ME = MemoryEffects(*MR);
+      ME = MemoryEffects(*MR, /*NoFPEnvMarker*/ false);
----------------
spavloff wrote:

Now FP locations behave exactly as other memories. Originally it seemed that treating these locations specifically, (like using natural default settings) can provide more convenient design. However it is hard to combine defferent logic in a single solution. Treating all memory locations uniformly seems more clear implementation.

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


More information about the cfe-commits mailing list