From d9731af75b38f30c02f19d6e81333b9c2599ad5f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 31 Mar 2006 18:20:46 +0000 Subject: Do not endian swap the operands to a store if the operands came from a vector. This fixes UnitTests/Vector/simple.c with altivec. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27298 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/CodeGen') diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 068a71e..443bba5 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -1450,10 +1450,10 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { } else { ExpandOp(Node->getOperand(1), Lo, Hi); IncrementSize = MVT::getSizeInBits(Hi.getValueType())/8; - } - if (!TLI.isLittleEndian()) - std::swap(Lo, Hi); + if (!TLI.isLittleEndian()) + std::swap(Lo, Hi); + } Lo = DAG.getNode(ISD::STORE, MVT::Other, Tmp1, Lo, Tmp2, Node->getOperand(3)); -- cgit v1.1