mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-21 19:48:46 +00:00
Add a missing check, this fixes UnitTests/Vector/sumarray.c
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27375 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a4c5d8c6b4
commit
97c2073270
@ -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
Block a user