mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Make sure operand does have size and element type operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30999 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0d479ecbb1
commit
5d04a1af4f
@ -3114,7 +3114,8 @@ SDOperand DAGCombiner::visitVVECTOR_SHUFFLE(SDNode *N) {
|
||||
// look though conversions that change things like v4f32 to v2f64.
|
||||
if (V->getOpcode() == ISD::VBIT_CONVERT) {
|
||||
SDOperand ConvInput = V->getOperand(0);
|
||||
if (NumElts ==
|
||||
if (ConvInput.getValueType() == MVT::Vector &&
|
||||
NumElts ==
|
||||
ConvInput.getConstantOperandVal(ConvInput.getNumOperands()-2))
|
||||
V = ConvInput.Val;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user