[llvm-bugs] [Bug 20841] LLVM fails to use flags from atomic instructions
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Apr 27 12:57:58 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=20841
Simon Pilgrim <llvm-dev at redking.me.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|REOPENED |RESOLVED
--- Comment #4 from Simon Pilgrim <llvm-dev at redking.me.uk> ---
(In reply to Craig Topper from comment #3)
> Doesn’t xadd update flags based on the value written to memory, while
> atomicrmw returns the original value read from memory? I’m not sure this is
> a valid optimization.
Yes, I can't believe I didn't realize that! Thanks Craig.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210427/ebbe8224/attachment.html>
More information about the llvm-bugs
mailing list