[PATCH] D32580: [X86][NFC] Rename 'Src' to 'Val'.
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 27 00:35:28 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL301521: [CodeGen][NFC] Rename 'Src' to 'Val'. (authored by courbet).
Changed prior to commit:
https://reviews.llvm.org/D32580?vs=96867&id=96880#toc
Repository:
rL LLVM
https://reviews.llvm.org/D32580
Files:
llvm/trunk/lib/Target/X86/X86SelectionDAGInfo.cpp
Index: llvm/trunk/lib/Target/X86/X86SelectionDAGInfo.cpp
===================================================================
--- llvm/trunk/lib/Target/X86/X86SelectionDAGInfo.cpp
+++ llvm/trunk/lib/Target/X86/X86SelectionDAGInfo.cpp
@@ -45,7 +45,7 @@
}
SDValue X86SelectionDAGInfo::EmitTargetCodeForMemset(
- SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Src,
+ SelectionDAG &DAG, const SDLoc &dl, SDValue Chain, SDValue Dst, SDValue Val,
SDValue Size, unsigned Align, bool isVolatile,
MachinePointerInfo DstPtrInfo) const {
ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);
@@ -69,10 +69,10 @@
if ((Align & 3) != 0 || !ConstantSize ||
ConstantSize->getZExtValue() > Subtarget.getMaxInlineSizeThreshold()) {
// Check to see if there is a specialized entry-point for memory zeroing.
- ConstantSDNode *V = dyn_cast<ConstantSDNode>(Src);
+ ConstantSDNode *ValC = dyn_cast<ConstantSDNode>(Val);
- if (const char *bzeroEntry = V &&
- V->isNullValue() ? Subtarget.getBZeroEntry() : nullptr) {
+ if (const char *bzeroEntry = ValC &&
+ ValC->isNullValue() ? Subtarget.getBZeroEntry() : nullptr) {
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
EVT IntPtr = TLI.getPointerTy(DAG.getDataLayout());
Type *IntPtrTy = DAG.getDataLayout().getIntPtrType(*DAG.getContext());
@@ -104,7 +104,7 @@
SDValue InFlag;
EVT AVT;
SDValue Count;
- ConstantSDNode *ValC = dyn_cast<ConstantSDNode>(Src);
+ ConstantSDNode *ValC = dyn_cast<ConstantSDNode>(Val);
unsigned BytesLeft = 0;
if (ValC) {
unsigned ValReg;
@@ -147,7 +147,7 @@
} else {
AVT = MVT::i8;
Count = DAG.getIntPtrConstant(SizeVal, dl);
- Chain = DAG.getCopyToReg(Chain, dl, X86::AL, Src, InFlag);
+ Chain = DAG.getCopyToReg(Chain, dl, X86::AL, Val, InFlag);
InFlag = Chain.getValue(1);
}
@@ -171,7 +171,7 @@
Chain = DAG.getMemset(Chain, dl,
DAG.getNode(ISD::ADD, dl, AddrVT, Dst,
DAG.getConstant(Offset, dl, AddrVT)),
- Src,
+ Val,
DAG.getConstant(BytesLeft, dl, SizeVT),
Align, isVolatile, false,
DstPtrInfo.getWithOffset(Offset));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32580.96880.patch
Type: text/x-patch
Size: 2361 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170427/e35321fc/attachment.bin>
More information about the llvm-commits
mailing list