[llvm] r293631 - [X86] Silence unused variable warning in Release builds.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 31 06:13:53 PST 2017
Author: d0k
Date: Tue Jan 31 08:13:53 2017
New Revision: 293631
URL: http://llvm.org/viewvc/llvm-project?rev=293631&view=rev
Log:
[X86] Silence unused variable warning in Release builds.
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=293631&r1=293630&r2=293631&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue Jan 31 08:13:53 2017
@@ -30610,10 +30610,11 @@ static SDValue combineVectorShift(SDNode
static SDValue combineVectorInsert(SDNode *N, SelectionDAG &DAG,
TargetLowering::DAGCombinerInfo &DCI,
const X86Subtarget &Subtarget) {
- unsigned Opcode = N->getOpcode();
- assert(((X86ISD::PINSRB == Opcode && N->getValueType(0) ==MVT::v16i8) ||
- (X86ISD::PINSRW == Opcode && N->getValueType(0) ==MVT::v8i16)) &&
- "Unexpected vector insertion");
+ assert(
+ ((N->getOpcode() == X86ISD::PINSRB && N->getValueType(0) == MVT::v16i8) ||
+ (N->getOpcode() == X86ISD::PINSRW &&
+ N->getValueType(0) == MVT::v8i16)) &&
+ "Unexpected vector insertion");
// Attempt to combine PINSRB/PINSRW patterns to a shuffle.
SDValue Op(N, 0);
More information about the llvm-commits
mailing list