From d18a462bdd8ba6a7dd14e40ff0ebaedf9c46de26 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Thu, 11 Sep 2008 03:12:59 +0000 Subject: The version of AtomicSDNode::AtomicSDNode used (only) for cmp-and-swap reversed the Cmp and Swap arguments; comments make it clear this is unintentional. Unfortunately, the x86 BE had a compensating reversal, which is removed here. PPC is OK. From inspection of the Alpha code I think it is OK, but if somebody has that platform please check it out. I cannot test on that platform. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56091 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/SelectionDAGNodes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index a8b233cb8f..7835f8cc96 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1624,8 +1624,8 @@ class AtomicSDNode : public MemSDNode { Align, /*isVolatile=*/true) { Ops[0] = Chain; Ops[1] = Ptr; - Ops[2] = Swp; - Ops[3] = Cmp; + Ops[2] = Cmp; + Ops[3] = Swp; InitOperands(Ops, 4); } AtomicSDNode(unsigned Opc, SDVTList VTL, SDValue Chain, SDValue Ptr, -- cgit v1.2.3