]> granicus.if.org Git - llvm/commitdiff
[LegalizeVectorOps] Remove calls to LegalizeOp on the return value from ExpandLoad...
authorCraig Topper <craig.topper@intel.com>
Fri, 10 May 2019 21:42:27 +0000 (21:42 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 10 May 2019 21:42:27 +0000 (21:42 +0000)
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

index 6d920c3fb08939d6950b0bf7425b7f890b739401..28190ac5916723b3d4b9a59e4cdf2cee89914a3d 100644 (file)
@@ -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);
       }
     }
   }