From: Luo, Yuanke Date: Mon, 29 May 2023 01:55:47 +0000 (+0800) Subject: [NFC][DAGISel] Remove dead code. X-Git-Tag: upstream/17.0.6~6930 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9032a94637981cce528f0838df4d4d474105d076;p=platform%2Fupstream%2Fllvm.git [NFC][DAGISel] Remove dead code. --- diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 1621ae4..16ce782 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)),