diff options
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 91a7580d60..cdf3168422 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -1612,7 +1612,7 @@ bool X86::isUNPCKLMask(SDNode *N) { if (BitI1.getOpcode() != ISD::UNDEF) { assert(isa<ConstantSDNode>(BitI1) && "Invalid VECTOR_SHUFFLE mask!"); - if (cast<ConstantSDNode>(BitI)->getValue() != j + NumElems) + if (cast<ConstantSDNode>(BitI1)->getValue() != j + NumElems) return false; } } @@ -1641,7 +1641,7 @@ bool X86::isUNPCKHMask(SDNode *N) { if (BitI1.getOpcode() != ISD::UNDEF) { assert(isa<ConstantSDNode>(BitI1) && "Invalid VECTOR_SHUFFLE mask!"); - if (cast<ConstantSDNode>(BitI)->getValue() != j + NumElems/2 + NumElems) + if (cast<ConstantSDNode>(BitI1)->getValue() != j + NumElems/2 + NumElems) return false; } } |