Skip to content

Commit 5513f77

Browse files
committed
Remove SDNPOutGlue on MEMCPY
1 parent 8c927fc commit 5513f77

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

llvm/lib/Target/BPF/BPFInstrInfo.td

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ def BPFbrcc : SDNode<"BPFISD::BR_CC", SDT_BPFBrCC, [SDNPHasChain]>;
4646
def BPFselectcc : SDNode<"BPFISD::SELECT_CC", SDT_BPFSelectCC>;
4747
def BPFWrapper : SDNode<"BPFISD::Wrapper", SDT_BPFWrapper>;
4848
def BPFmemcpy : SDNode<"BPFISD::MEMCPY", SDT_BPFMEMCPY,
49-
[SDNPHasChain, SDNPOutGlue,
50-
SDNPMayStore, SDNPMayLoad]>;
49+
[SDNPHasChain, SDNPMayStore, SDNPMayLoad]>;
5150
def BPFIsLittleEndian : Predicate<"Subtarget->isLittleEndian()">;
5251
def BPFIsBigEndian : Predicate<"!Subtarget->isLittleEndian()">;
5352
def BPFHasALU32 : Predicate<"Subtarget->getHasAlu32()">;

llvm/lib/Target/BPF/BPFSelectionDAGInfo.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ SDValue BPFSelectionDAGInfo::EmitTargetCodeForMemcpy(
3939
if (StoresNumEstimate > getCommonMaxStoresPerMemFunc())
4040
return SDValue();
4141

42-
SDVTList VTs = DAG.getVTList(MVT::Other, MVT::Glue);
43-
44-
Dst = DAG.getNode(BPFISD::MEMCPY, dl, VTs, Chain, Dst, Src,
42+
return DAG.getNode(BPFISD::MEMCPY, dl, MVT::Other, Chain, Dst, Src,
4543
DAG.getConstant(CopyLen, dl, MVT::i64),
4644
DAG.getConstant(Alignment.value(), dl, MVT::i64));
47-
48-
return Dst.getValue(0);
4945
}

0 commit comments

Comments
 (0)