@@ -4183,8 +4183,7 @@ static SDValue splitVectorIntUnary(SDValue Op, SelectionDAG &DAG,
4183
4183
const SDLoc &dl) {
4184
4184
// Make sure we only try to split 256/512-bit types to avoid creating
4185
4185
// narrow vectors.
4186
- EVT VT = Op.getValueType();
4187
- (void)VT;
4186
+ [[maybe_unused]] EVT VT = Op.getValueType();
4188
4187
assert((Op.getOperand(0).getValueType().is256BitVector() ||
4189
4188
Op.getOperand(0).getValueType().is512BitVector()) &&
4190
4189
(VT.is256BitVector() || VT.is512BitVector()) && "Unsupported VT!");
@@ -4199,8 +4198,7 @@ static SDValue splitVectorIntUnary(SDValue Op, SelectionDAG &DAG,
4199
4198
static SDValue splitVectorIntBinary(SDValue Op, SelectionDAG &DAG,
4200
4199
const SDLoc &dl) {
4201
4200
// Assert that all the types match.
4202
- EVT VT = Op.getValueType();
4203
- (void)VT;
4201
+ [[maybe_unused]] EVT VT = Op.getValueType();
4204
4202
assert(Op.getOperand(0).getValueType() == VT &&
4205
4203
Op.getOperand(1).getValueType() == VT && "Unexpected VTs!");
4206
4204
assert((VT.is256BitVector() || VT.is512BitVector()) && "Unsupported VT!");
@@ -23411,8 +23409,7 @@ static SDValue LowerVSETCC(SDValue Op, const X86Subtarget &Subtarget,
23411
23409
23412
23410
assert(!IsStrict && "Strict SETCC only handles FP operands.");
23413
23411
23414
- MVT VTOp0 = Op0.getSimpleValueType();
23415
- (void)VTOp0;
23412
+ [[maybe_unused]] MVT VTOp0 = Op0.getSimpleValueType();
23416
23413
assert(VTOp0 == Op1.getSimpleValueType() &&
23417
23414
"Expected operands with same type!");
23418
23415
assert(VT.getVectorNumElements() == VTOp0.getVectorNumElements() &&
0 commit comments