forked from OSchip/llvm-project
[X86] Remove an unnecessary SmallVector that was collecting chains for two SDNode's we're still holding SDValues for. NFCI
We can just get the chains from those SDValues to create the TokenFactor. llvm-svn: 320757
This commit is contained in:
parent
7d7adf4f2e
commit
4341a7b08c
|
@ -18639,13 +18639,10 @@ static SDValue LowerExtended1BitVectorLoad(SDValue Op,
|
|||
|
||||
assert(VT == MVT::v32i8 && "Unexpected extload type");
|
||||
|
||||
SmallVector<SDValue, 2> Chains;
|
||||
|
||||
SDValue BasePtr = Ld->getBasePtr();
|
||||
SDValue LoadLo = DAG.getLoad(MVT::v16i1, dl, Ld->getChain(),
|
||||
Ld->getBasePtr(),
|
||||
Ld->getMemOperand());
|
||||
Chains.push_back(LoadLo.getValue(1));
|
||||
|
||||
SDValue BasePtrHi =
|
||||
DAG.getNode(ISD::ADD, dl, BasePtr.getValueType(), BasePtr,
|
||||
|
@ -18654,8 +18651,9 @@ static SDValue LowerExtended1BitVectorLoad(SDValue Op,
|
|||
SDValue LoadHi = DAG.getLoad(MVT::v16i1, dl, Ld->getChain(),
|
||||
BasePtrHi,
|
||||
Ld->getMemOperand());
|
||||
Chains.push_back(LoadHi.getValue(1));
|
||||
SDValue NewChain = DAG.getNode(ISD::TokenFactor, dl, MVT::Other, Chains);
|
||||
|
||||
SDValue NewChain = DAG.getNode(ISD::TokenFactor, dl, MVT::Other,
|
||||
LoadLo.getValue(1), LoadHi.getValue(1));
|
||||
DAG.ReplaceAllUsesOfValueWith(SDValue(Ld, 1), NewChain);
|
||||
|
||||
SDValue Lo = DAG.getNode(ExtOpcode, dl, MVT::v16i8, LoadLo);
|
||||
|
|
Loading…
Reference in New Issue