mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-17 23:44:43 +00:00
Minor cleanup and docs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160311 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f6978ddbec
commit
c76fa8937d
@ -155,7 +155,9 @@ SDValue DAGTypeLegalizer::ScalarizeVecRes_BITCAST(SDNode *N) {
|
||||
SDValue DAGTypeLegalizer::ScalarizeVecRes_BUILD_VECTOR(SDNode *N) {
|
||||
EVT EltVT = N->getValueType(0).getVectorElementType();
|
||||
SDValue InOp = N->getOperand(0);
|
||||
if (InOp.getValueType() != EltVT)
|
||||
// The BUILD_VECTOR operands may be of wider element types and
|
||||
// we may need to truncate them back to the requested return type.
|
||||
if (EltVT.isInteger())
|
||||
return DAG.getNode(ISD::TRUNCATE, N->getDebugLoc(), EltVT, InOp);
|
||||
return InOp;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user