From 8e3c4305a627d99e790b9f5d23735ef5c0f7d21f Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 10 May 2019 21:42:27 +0000 Subject: [PATCH] [LegalizeVectorOps] Remove calls to LegalizeOp on the return value from ExpandLoad/ExpandStore. We already updated the LegalizedNodes map at the end of the Expand call. This would have marked the new node as being mapped to itself. So the LegalizeOp call will find that an immediately return. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360472 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp b/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp index 6d920c3fb08..28190ac5916 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp @@ -264,7 +264,7 @@ SDValue VectorLegalizer::LegalizeOp(SDValue Op) { LLVM_FALLTHROUGH; case TargetLowering::Expand: Changed = true; - return LegalizeOp(ExpandLoad(Op)); + return ExpandLoad(Op); } } } else if (Op.getOpcode() == ISD::STORE) { @@ -289,7 +289,7 @@ SDValue VectorLegalizer::LegalizeOp(SDValue Op) { } case TargetLowering::Expand: Changed = true; - return LegalizeOp(ExpandStore(Op)); + return ExpandStore(Op); } } } -- 2.50.1