[llvm] fee52fe - [X86] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off build. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 15 13:10:51 PST 2021
Author: Fangrui Song
Date: 2021-11-15T13:10:47-08:00
New Revision: fee52fe0ade24ce081e31d48ad671aca960d7f51
URL: https://github.com/llvm/llvm-project/commit/fee52fe0ade24ce081e31d48ad671aca960d7f51
DIFF: https://github.com/llvm/llvm-project/commit/fee52fe0ade24ce081e31d48ad671aca960d7f51.diff
LOG: [X86] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off build. 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 f0bd1b450815..ed1d69277dfd 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -6324,6 +6324,7 @@ static SDValue splitVectorIntUnary(SDValue Op, SelectionDAG &DAG) {
// Make sure we only try to split 256/512-bit types to avoid creating
// narrow vectors.
EVT VT = Op.getValueType();
+ (void)VT;
assert((Op.getOperand(0).getValueType().is256BitVector() ||
Op.getOperand(0).getValueType().is512BitVector()) &&
(VT.is256BitVector() || VT.is512BitVector()) && "Unsupported VT!");
@@ -6338,6 +6339,7 @@ static SDValue splitVectorIntUnary(SDValue Op, SelectionDAG &DAG) {
static SDValue splitVectorIntBinary(SDValue Op, SelectionDAG &DAG) {
// Sanity check that all the types match.
EVT VT = Op.getValueType();
+ (void)VT;
assert(Op.getOperand(0).getValueType() == VT &&
Op.getOperand(1).getValueType() == VT && "Unexpected VTs!");
assert((VT.is256BitVector() || VT.is512BitVector()) && "Unsupported VT!");
More information about the llvm-commits
mailing list