forked from OSchip/llvm-project
Add a missing check, this fixes UnitTests/Vector/sumarray.c
llvm-svn: 27375
This commit is contained in:
parent
04c00fc844
commit
e1e3adf802
|
@ -2017,8 +2017,8 @@ SDOperand DAGCombiner::visitVBIT_CONVERT(SDNode *N) {
|
|||
break;
|
||||
}
|
||||
|
||||
if (isSimple) {
|
||||
MVT::ValueType DestEltVT = cast<VTSDNode>(N->getOperand(2))->getVT();
|
||||
MVT::ValueType DestEltVT = cast<VTSDNode>(N->getOperand(2))->getVT();
|
||||
if (isSimple && !MVT::isVector(DestEltVT)) {
|
||||
return ConstantFoldVBIT_CONVERTofVBUILD_VECTOR(N0.Val, DestEltVT);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue