Skip to content

Commit 9032a94

Browse files
committed
[NFC][DAGISel] Remove dead code.
1 parent c384fcd commit 9032a94

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8283,14 +8283,13 @@ bool SelectionDAGBuilder::visitMemPCpyCall(const CallInst &I) {
82838283
// DAG::getMemcpy needs Alignment to be defined.
82848284
Align Alignment = std::min(DstAlign, SrcAlign);
82858285

8286-
bool isVol = false;
82878286
SDLoc sdl = getCurSDLoc();
82888287

82898288
// In the mempcpy context we need to pass in a false value for isTailCall
82908289
// because the return pointer needs to be adjusted by the size of
82918290
// the copied memory.
8292-
SDValue Root = isVol ? getRoot() : getMemoryRoot();
8293-
SDValue MC = DAG.getMemcpy(Root, sdl, Dst, Src, Size, Alignment, isVol, false,
8291+
SDValue Root = getMemoryRoot();
8292+
SDValue MC = DAG.getMemcpy(Root, sdl, Dst, Src, Size, Alignment, false, false,
82948293
/*isTailCall=*/false,
82958294
MachinePointerInfo(I.getArgOperand(0)),
82968295
MachinePointerInfo(I.getArgOperand(1)),

0 commit comments

Comments
 (0)