forked from OSchip/llvm-project
[NFC] Remove deadcode
This commit is contained in:
parent
2b83467d9e
commit
95083fa3b8
|
@ -1058,20 +1058,20 @@ public:
|
|||
const AAMDNodes &AAInfo = AAMDNodes());
|
||||
|
||||
SDValue getAtomicMemcpy(SDValue Chain, const SDLoc &dl, SDValue Dst,
|
||||
unsigned DstAlign, SDValue Src, unsigned SrcAlign,
|
||||
SDValue Size, Type *SizeTy, unsigned ElemSz,
|
||||
bool isTailCall, MachinePointerInfo DstPtrInfo,
|
||||
SDValue Src, SDValue Size, Type *SizeTy,
|
||||
unsigned ElemSz, bool isTailCall,
|
||||
MachinePointerInfo DstPtrInfo,
|
||||
MachinePointerInfo SrcPtrInfo);
|
||||
|
||||
SDValue getAtomicMemmove(SDValue Chain, const SDLoc &dl, SDValue Dst,
|
||||
unsigned DstAlign, SDValue Src, unsigned SrcAlign,
|
||||
SDValue Size, Type *SizeTy, unsigned ElemSz,
|
||||
bool isTailCall, MachinePointerInfo DstPtrInfo,
|
||||
SDValue Src, SDValue Size, Type *SizeTy,
|
||||
unsigned ElemSz, bool isTailCall,
|
||||
MachinePointerInfo DstPtrInfo,
|
||||
MachinePointerInfo SrcPtrInfo);
|
||||
|
||||
SDValue getAtomicMemset(SDValue Chain, const SDLoc &dl, SDValue Dst,
|
||||
unsigned DstAlign, SDValue Value, SDValue Size,
|
||||
Type *SizeTy, unsigned ElemSz, bool isTailCall,
|
||||
SDValue Value, SDValue Size, Type *SizeTy,
|
||||
unsigned ElemSz, bool isTailCall,
|
||||
MachinePointerInfo DstPtrInfo);
|
||||
|
||||
/// Helper function to make it easier to build SetCC's if you just have an
|
||||
|
|
|
@ -7172,10 +7172,9 @@ SDValue SelectionDAG::getMemcpy(SDValue Chain, const SDLoc &dl, SDValue Dst,
|
|||
}
|
||||
|
||||
SDValue SelectionDAG::getAtomicMemcpy(SDValue Chain, const SDLoc &dl,
|
||||
SDValue Dst, unsigned DstAlign,
|
||||
SDValue Src, unsigned SrcAlign,
|
||||
SDValue Size, Type *SizeTy,
|
||||
unsigned ElemSz, bool isTailCall,
|
||||
SDValue Dst, SDValue Src, SDValue Size,
|
||||
Type *SizeTy, unsigned ElemSz,
|
||||
bool isTailCall,
|
||||
MachinePointerInfo DstPtrInfo,
|
||||
MachinePointerInfo SrcPtrInfo) {
|
||||
// Emit a library call.
|
||||
|
@ -7275,10 +7274,9 @@ SDValue SelectionDAG::getMemmove(SDValue Chain, const SDLoc &dl, SDValue Dst,
|
|||
}
|
||||
|
||||
SDValue SelectionDAG::getAtomicMemmove(SDValue Chain, const SDLoc &dl,
|
||||
SDValue Dst, unsigned DstAlign,
|
||||
SDValue Src, unsigned SrcAlign,
|
||||
SDValue Size, Type *SizeTy,
|
||||
unsigned ElemSz, bool isTailCall,
|
||||
SDValue Dst, SDValue Src, SDValue Size,
|
||||
Type *SizeTy, unsigned ElemSz,
|
||||
bool isTailCall,
|
||||
MachinePointerInfo DstPtrInfo,
|
||||
MachinePointerInfo SrcPtrInfo) {
|
||||
// Emit a library call.
|
||||
|
@ -7406,9 +7404,9 @@ SDValue SelectionDAG::getMemset(SDValue Chain, const SDLoc &dl, SDValue Dst,
|
|||
}
|
||||
|
||||
SDValue SelectionDAG::getAtomicMemset(SDValue Chain, const SDLoc &dl,
|
||||
SDValue Dst, unsigned DstAlign,
|
||||
SDValue Value, SDValue Size, Type *SizeTy,
|
||||
unsigned ElemSz, bool isTailCall,
|
||||
SDValue Dst, SDValue Value, SDValue Size,
|
||||
Type *SizeTy, unsigned ElemSz,
|
||||
bool isTailCall,
|
||||
MachinePointerInfo DstPtrInfo) {
|
||||
// Emit a library call.
|
||||
TargetLowering::ArgListTy Args;
|
||||
|
|
|
@ -5960,15 +5960,13 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
|
|||
SDValue Src = getValue(MI.getRawSource());
|
||||
SDValue Length = getValue(MI.getLength());
|
||||
|
||||
unsigned DstAlign = MI.getDestAlignment();
|
||||
unsigned SrcAlign = MI.getSourceAlignment();
|
||||
Type *LengthTy = MI.getLength()->getType();
|
||||
unsigned ElemSz = MI.getElementSizeInBytes();
|
||||
bool isTC = I.isTailCall() && isInTailCallPosition(I, DAG.getTarget());
|
||||
SDValue MC = DAG.getAtomicMemcpy(getRoot(), sdl, Dst, DstAlign, Src,
|
||||
SrcAlign, Length, LengthTy, ElemSz, isTC,
|
||||
MachinePointerInfo(MI.getRawDest()),
|
||||
MachinePointerInfo(MI.getRawSource()));
|
||||
SDValue MC =
|
||||
DAG.getAtomicMemcpy(getRoot(), sdl, Dst, Src, Length, LengthTy, ElemSz,
|
||||
isTC, MachinePointerInfo(MI.getRawDest()),
|
||||
MachinePointerInfo(MI.getRawSource()));
|
||||
updateDAGForMaybeTailCall(MC);
|
||||
return;
|
||||
}
|
||||
|
@ -5978,15 +5976,13 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
|
|||
SDValue Src = getValue(MI.getRawSource());
|
||||
SDValue Length = getValue(MI.getLength());
|
||||
|
||||
unsigned DstAlign = MI.getDestAlignment();
|
||||
unsigned SrcAlign = MI.getSourceAlignment();
|
||||
Type *LengthTy = MI.getLength()->getType();
|
||||
unsigned ElemSz = MI.getElementSizeInBytes();
|
||||
bool isTC = I.isTailCall() && isInTailCallPosition(I, DAG.getTarget());
|
||||
SDValue MC = DAG.getAtomicMemmove(getRoot(), sdl, Dst, DstAlign, Src,
|
||||
SrcAlign, Length, LengthTy, ElemSz, isTC,
|
||||
MachinePointerInfo(MI.getRawDest()),
|
||||
MachinePointerInfo(MI.getRawSource()));
|
||||
SDValue MC =
|
||||
DAG.getAtomicMemmove(getRoot(), sdl, Dst, Src, Length, LengthTy, ElemSz,
|
||||
isTC, MachinePointerInfo(MI.getRawDest()),
|
||||
MachinePointerInfo(MI.getRawSource()));
|
||||
updateDAGForMaybeTailCall(MC);
|
||||
return;
|
||||
}
|
||||
|
@ -5996,13 +5992,12 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
|
|||
SDValue Val = getValue(MI.getValue());
|
||||
SDValue Length = getValue(MI.getLength());
|
||||
|
||||
unsigned DstAlign = MI.getDestAlignment();
|
||||
Type *LengthTy = MI.getLength()->getType();
|
||||
unsigned ElemSz = MI.getElementSizeInBytes();
|
||||
bool isTC = I.isTailCall() && isInTailCallPosition(I, DAG.getTarget());
|
||||
SDValue MC = DAG.getAtomicMemset(getRoot(), sdl, Dst, DstAlign, Val, Length,
|
||||
LengthTy, ElemSz, isTC,
|
||||
MachinePointerInfo(MI.getRawDest()));
|
||||
SDValue MC =
|
||||
DAG.getAtomicMemset(getRoot(), sdl, Dst, Val, Length, LengthTy, ElemSz,
|
||||
isTC, MachinePointerInfo(MI.getRawDest()));
|
||||
updateDAGForMaybeTailCall(MC);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue