]> granicus.if.org Git - llvm/commitdiff
[X86] Connect the output chain properly when combining vzext_movl+load into vzext_load.
authorCraig Topper <craig.topper@intel.com>
Fri, 28 Jun 2019 06:58:50 +0000 (06:58 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 28 Jun 2019 06:58:50 +0000 (06:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364625 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 3a8b9c53aed2e38adbe57ba6c69a931fdf208a74..2ad8ade1a980dfe1229d12e4156238186ab44072 100644 (file)
@@ -33677,7 +33677,7 @@ static SDValue combineShuffle(SDNode *N, SelectionDAG &DAG,
                                   LN->getPointerInfo(),
                                   LN->getAlignment(),
                                   MachineMemOperand::MOLoad);
-      DAG.ReplaceAllUsesOfValueWith(SDValue(LN, 0), VZLoad.getValue(1));
+      DAG.ReplaceAllUsesOfValueWith(SDValue(LN, 1), VZLoad.getValue(1));
       return VZLoad;
     }
   }