[llvm] 9032a94 - [NFC][DAGISel] Remove dead code.

via llvm-commits llvm-commits at lists.llvm.org
Sun May 28 18:57:07 PDT 2023


Author: Luo, Yuanke
Date: 2023-05-29T09:56:59+08:00
New Revision: 9032a94637981cce528f0838df4d4d474105d076

URL: https://github.com/llvm/llvm-project/commit/9032a94637981cce528f0838df4d4d474105d076
DIFF: https://github.com/llvm/llvm-project/commit/9032a94637981cce528f0838df4d4d474105d076.diff

LOG: [NFC][DAGISel] Remove dead code.

Added: 
    

Modified: 
    llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 1621ae4858229..16ce7827df2b1 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -8283,14 +8283,13 @@ bool SelectionDAGBuilder::visitMemPCpyCall(const CallInst &I) {
   // DAG::getMemcpy needs Alignment to be defined.
   Align Alignment = std::min(DstAlign, SrcAlign);
 
-  bool isVol = false;
   SDLoc sdl = getCurSDLoc();
 
   // In the mempcpy context we need to pass in a false value for isTailCall
   // because the return pointer needs to be adjusted by the size of
   // the copied memory.
-  SDValue Root = isVol ? getRoot() : getMemoryRoot();
-  SDValue MC = DAG.getMemcpy(Root, sdl, Dst, Src, Size, Alignment, isVol, false,
+  SDValue Root = getMemoryRoot();
+  SDValue MC = DAG.getMemcpy(Root, sdl, Dst, Src, Size, Alignment, false, false,
                              /*isTailCall=*/false,
                              MachinePointerInfo(I.getArgOperand(0)),
                              MachinePointerInfo(I.getArgOperand(1)),


        


More information about the llvm-commits mailing list