[llvm] r324135 - [X86] Pass SDLoc by const reference in a few more places in X86ISelLowering.cpp. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 2 12:32:00 PST 2018
Author: ctopper
Date: Fri Feb 2 12:32:00 2018
New Revision: 324135
URL: http://llvm.org/viewvc/llvm-project?rev=324135&view=rev
Log:
[X86] Pass SDLoc by const reference in a few more places in X86ISelLowering.cpp. NFC
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=324135&r1=324134&r2=324135&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Fri Feb 2 12:32:00 2018
@@ -15912,7 +15912,8 @@ static SDValue LowerUINT_TO_FP_i32(SDVal
}
static SDValue lowerUINT_TO_FP_v2i32(SDValue Op, SelectionDAG &DAG,
- const X86Subtarget &Subtarget, SDLoc &DL) {
+ const X86Subtarget &Subtarget,
+ const SDLoc &DL) {
if (Op.getSimpleValueType() != MVT::v2f64)
return SDValue();
@@ -32516,7 +32517,7 @@ static SDValue reduceVMULWidth(SDNode *N
}
static SDValue combineMulSpecial(uint64_t MulAmt, SDNode *N, SelectionDAG &DAG,
- EVT VT, SDLoc DL) {
+ EVT VT, const SDLoc &DL) {
auto combineMulShlAddOrSub = [&](int Mult, int Shift, bool isAdd) {
SDValue Result = DAG.getNode(X86ISD::MUL_IMM, DL, VT, N->getOperand(0),
@@ -34208,7 +34209,8 @@ static SDValue detectAVGPattern(SDValue
Operands[0] = LHS.getOperand(0);
Operands[1] = LHS.getOperand(1);
- auto AVGBuilder = [](SelectionDAG &DAG, SDLoc DL, SDValue Op0, SDValue Op1) {
+ auto AVGBuilder = [](SelectionDAG &DAG, const SDLoc &DL, SDValue Op0,
+ SDValue Op1) {
return DAG.getNode(X86ISD::AVG, DL, Op0.getValueType(), Op0, Op1);
};
@@ -35056,7 +35058,7 @@ static SDValue combineFaddFsub(SDNode *N
/// e.g. TRUNC( BINOP( X, Y ) ) --> BINOP( TRUNC( X ), TRUNC( Y ) )
static SDValue combineTruncatedArithmetic(SDNode *N, SelectionDAG &DAG,
const X86Subtarget &Subtarget,
- SDLoc &DL) {
+ const SDLoc &DL) {
assert(N->getOpcode() == ISD::TRUNCATE && "Wrong opcode");
SDValue Src = N->getOperand(0);
unsigned Opcode = Src.getOpcode();
@@ -35293,7 +35295,7 @@ static SDValue combineVectorTruncation(S
/// This function transforms vector truncation of 'extended sign-bits' or
/// 'extended zero-bits' values.
/// vXi16/vXi32/vXi64 to vXi8/vXi16/vXi32 into X86ISD::PACKSS/PACKUS operations.
-static SDValue combineVectorSignBitsTruncation(SDNode *N, SDLoc &DL,
+static SDValue combineVectorSignBitsTruncation(SDNode *N, const SDLoc &DL,
SelectionDAG &DAG,
const X86Subtarget &Subtarget) {
// Requires SSE2 but AVX512 has fast truncate.
@@ -37302,7 +37304,7 @@ static SDValue matchPMADDWD(SelectionDAG
if (!canReduceVMulWidth(Mul.getNode(), DAG, Mode) || Mode == MULU16)
return SDValue();
- auto PMADDBuilder = [](SelectionDAG &DAG, SDLoc DL, SDValue Op0,
+ auto PMADDBuilder = [](SelectionDAG &DAG, const SDLoc &DL, SDValue Op0,
SDValue Op1) {
// Shrink by adding truncate nodes and let DAGCombine fold with the
// sources.
More information about the llvm-commits
mailing list