[llvm] [SelectionDAG][NVPTX] Stop casting atomic xchg to integer in AtomicExpand; rely on legalization (PR #229867)
Yonah Goldberg via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 9 13:47:51 PDT 2026
================
@@ -867,6 +867,23 @@ SDValue DAGTypeLegalizer::BitConvertToInteger(SDValue Op) {
EVT::getIntegerVT(*DAG.getContext(), BitWidth), Op);
}
+/// Convert an atomic swap to operate on an integer of the same size.
+SDValue DAGTypeLegalizer::BitcastToInt_ATOMIC_SWAP(SDNode *N) {
----------------
YonahGoldberg wrote:
Because it's a helper used not just for float type legalization now, also for vector legalization.
https://github.com/llvm/llvm-project/pull/229867
More information about the llvm-commits
mailing list