[llvm] b7e4a8a - [X86] LowerIntVSETCC_AVX512 - reuse existing SDLoc. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon May 13 08:00:50 PDT 2024
Author: Simon Pilgrim
Date: 2024-05-13T16:00:24+01:00
New Revision: b7e4a8a08ecf73d2b34dca1b71d08d622da58bdc
URL: https://github.com/llvm/llvm-project/commit/b7e4a8a08ecf73d2b34dca1b71d08d622da58bdc
DIFF: https://github.com/llvm/llvm-project/commit/b7e4a8a08ecf73d2b34dca1b71d08d622da58bdc.diff
LOG: [X86] LowerIntVSETCC_AVX512 - reuse existing SDLoc. NFC.
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index bf1f3f335771a..ecc5b3b3bf840 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -23104,14 +23104,12 @@ static SDValue splitIntVSETCC(EVT VT, SDValue LHS, SDValue RHS,
DAG.getNode(ISD::SETCC, dl, HiVT, LHS2, RHS2, CC));
}
-static SDValue LowerIntVSETCC_AVX512(SDValue Op, SelectionDAG &DAG) {
-
+static SDValue LowerIntVSETCC_AVX512(SDValue Op, const SDLoc &dl,
+ SelectionDAG &DAG) {
SDValue Op0 = Op.getOperand(0);
SDValue Op1 = Op.getOperand(1);
SDValue CC = Op.getOperand(2);
MVT VT = Op.getSimpleValueType();
- SDLoc dl(Op);
-
assert(VT.getVectorElementType() == MVT::i1 &&
"Cannot set masked compare for this operation");
@@ -23387,7 +23385,7 @@ static SDValue LowerVSETCC(SDValue Op, const X86Subtarget &Subtarget,
// But there is no compare instruction for i8 and i16 elements in KNL.
assert((VTOp0.getScalarSizeInBits() >= 32 || Subtarget.hasBWI()) &&
"Unexpected operand type");
- return LowerIntVSETCC_AVX512(Op, DAG);
+ return LowerIntVSETCC_AVX512(Op, dl, DAG);
}
// Lower using XOP integer comparisons.
More information about the llvm-commits
mailing list