[llvm] 95083fa - [NFC] Remove deadcode
Guillaume Chatelet via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 10 08:13:54 PDT 2022
Author: Guillaume Chatelet
Date: 2022-06-10T15:13:42Z
New Revision: 95083fa3b862772511baa086d27c78662758cf58
URL: https://github.com/llvm/llvm-project/commit/95083fa3b862772511baa086d27c78662758cf58
DIFF: https://github.com/llvm/llvm-project/commit/95083fa3b862772511baa086d27c78662758cf58.diff
LOG: [NFC] Remove deadcode
Added:
Modified:
llvm/include/llvm/CodeGen/SelectionDAG.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/SelectionDAG.h b/llvm/include/llvm/CodeGen/SelectionDAG.h
index b64772558fa9..7042b4fddeba 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAG.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAG.h
@@ -1058,20 +1058,20 @@ class SelectionDAG {
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
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 314aa7cc69ba..97777d008421 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -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;
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 1da07ddfc9ec..392fe1623dd1 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -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;
}
More information about the llvm-commits
mailing list