================
@@ -1509,6 +1533,12 @@ void 
SITargetLowering::getTgtMemIntrinsic(SmallVectorImpl<IntrinsicInfo> &Infos,
         Info.memVT = getValueType(MF.getDataLayout(), DataTy);
 
       Info.flags = Flags | MachineMemOperand::MOStore;
+      if (std::optional<SyncScope::ID> SSID = parseBufferAtomicScopeArg(CI)) {
+        // Pretend to be atomic so SIMemoryLegalizer::expandStore sets cache
+        // bypass bits, since atomic and plain buffer stores look identical.
+        Info.order = AtomicOrdering::Monotonic;
----------------
krzysz00 wrote:

I'm not sure Monotonic is correct here?

https://github.com/llvm/llvm-project/pull/213585
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to