mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
[DAGCombiner] Use EVT::changeVectorElementTypeToInteger() instead of implementing manually.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319119 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fc69100d8e
commit
b7bbf042a3
@ -7783,10 +7783,7 @@ SDValue DAGCombiner::visitZERO_EXTEND(SDNode *N) {
|
||||
// If the desired elements are smaller or larger than the source
|
||||
// elements we can use a matching integer vector type and then
|
||||
// truncate/sign extend.
|
||||
EVT MatchingElementType = EVT::getIntegerVT(
|
||||
*DAG.getContext(), N00VT.getScalarSizeInBits());
|
||||
EVT MatchingVectorType = EVT::getVectorVT(
|
||||
*DAG.getContext(), MatchingElementType, N00VT.getVectorNumElements());
|
||||
EVT MatchingVectorType = N00VT.changeVectorElementTypeToInteger();
|
||||
SDValue VsetCC =
|
||||
DAG.getNode(ISD::SETCC, DL, MatchingVectorType, N0.getOperand(0),
|
||||
N0.getOperand(1), N0.getOperand(2));
|
||||
|
Loading…
Reference in New Issue
Block a user