================
@@ -12032,7 +12121,7 @@ OpenMPIRBuilder::InsertPointTy 
OpenMPIRBuilder::createAtomicCompare(
             Builder.CreateCondBr(SuccessOrFail, ExitBB, ContBB);
 
             Builder.SetInsertPoint(ContBB);
-            Builder.CreateStore(OldValue, V.Var);
+            Builder.CreateAlignedStore(OldValue, V.Var, V.Alignment);
----------------
MattPD wrote:

Confirmed for code generation: With `-O2`, the fail-only `long double` path now 
keeps `store volatile` to `v`.

The PR's changed tests do not declare a `volatile` capture destination, leaving 
`V.IsVolatile` at lines 12066 and 12124 untested. Could codegen checks be added 
for a fail-only `volatile` `v` on both the padded and non-padded paths?

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

Reply via email to