[clang] [ClangFE] Improve handling of casting of atomic memory operations. (PR #86691)
Jonas Paulsson via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 30 05:08:09 PDT 2024
================
@@ -1399,13 +1401,22 @@ RValue AtomicInfo::convertAtomicTempToRValue(Address addr,
LVal.getBaseInfo(), TBAAAccessInfo()));
}
+static bool shouldCastToInt(llvm::Type *ValTy, bool CmpXchg) {
----------------
JonPsson1 wrote:
I thought it was a bit more clear than 'CastFP', as the reason for it now is the compare-and-exchange instruction only.
Also added comment.
https://github.com/llvm/llvm-project/pull/86691
More information about the cfe-commits
mailing list