mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 12:55:45 +00:00
Add a missing check, this fixes UnitTests/Vector/sumarray.c
llvm-svn: 27375
This commit is contained in:
parent
d9902c3de0
commit
d13dd8ef5c
@ -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…
x
Reference in New Issue
Block a user