[PATCH] D52416: Allow FP types for atomicrmw xchg
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 5 12:51:15 PST 2018
arsenm marked an inline comment as done.
arsenm added inline comments.
================
Comment at: lib/CodeGen/AtomicExpandPass.cpp:500
+
+ bool NeedBitcast = OrigTy->isFloatingPointTy();
+ if (NeedBitcast) {
----------------
jyknight wrote:
> Add a comment here that this code can go away if the cmpxchg instruction adds support for floating point types.
I think there might need to be a separate fcmpxchg instruction for that, unless you mean there will also be a version that treats the FP type here as integer in memory
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D52416/new/
https://reviews.llvm.org/D52416
More information about the llvm-commits
mailing list